|
@@ -33,21 +33,11 @@ p.locked = True
|
|
|
p.withhold_from_itunes = True
|
|
|
|
|
|
file_list = os.listdir("mp3")
|
|
|
-file_list.pop(0)
|
|
|
-# entries = (os.path.join("mp3", file_name) for file_name in os.listdir("mp3"))
|
|
|
-# entries = ((os.stat(path), path) for path in entries)
|
|
|
-# entries = ((stat[ST_CTIME], path)
|
|
|
-# for stat, path in entries if S_ISREG(stat[ST_MODE]))
|
|
|
-# entries = list(entries)
|
|
|
-# entries.pop(0)
|
|
|
-
|
|
|
-# for file in reversed(entries):
|
|
|
+# file_list.pop(0)
|
|
|
for file in (file_list):
|
|
|
filename = file[:-4]
|
|
|
ep_details = filename.split("_")
|
|
|
file_size = os.stat(f"./mp3/{filename}.mp3").st_size
|
|
|
- # creation_time = os.stat(f"./mp3/{filename}.mp3").st_ctime
|
|
|
- # creation_time_ns = os.stat(f"./mp3/{filename}.mp3").st_ctime_ns
|
|
|
file_length, description = get_mp3_metadata(f"./mp3/{filename}.mp3")
|
|
|
p.add_episode(Episode(
|
|
|
title=filename.replace("_", " "),
|