Skip to content

Commit 0ae378d

Browse files
committed
updates
1 parent 9396c9a commit 0ae378d

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ def process_artists_missing(processed_artists=None) -> List[int]:
327327
if not refresh_resp or "id" not in refresh_resp:
328328
logger.warning("WARNING: Could not refresh. Skipping this artist.")
329329
time.sleep(10)
330-
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
331330
continue
332331
logger.info(f"Refresh command accepted (ID={refresh_resp['id']}). Waiting 5s...")
333332
time.sleep(5)
@@ -465,7 +464,6 @@ def process_albums_missing(processed_albums=None) -> List[int]:
465464
if not refresh_resp or "id" not in refresh_resp:
466465
logger.warning(f"WARNING: Could not refresh artist {artist_name}. Skipping album.")
467466
time.sleep(10)
468-
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
469467
continue
470468
logger.info(f"Refresh command accepted (ID={refresh_resp['id']}). Waiting 5s...")
471469
time.sleep(5)
@@ -618,7 +616,6 @@ def process_album_upgrades() -> bool:
618616
if not ref_resp or "id" not in ref_resp:
619617
logger.warning("WARNING: Refresh command failed. Skipping this album.")
620618
time.sleep(10)
621-
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
622619
continue
623620
logger.info(f"Refresh accepted (ID={ref_resp['id']}). Waiting 5s...")
624621
time.sleep(5)
@@ -632,7 +629,6 @@ def process_album_upgrades() -> bool:
632629
else:
633630
logger.warning(f"WARNING: AlbumSearch failed for album ID={album_id}.")
634631
time.sleep(10)
635-
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
636632
continue
637633

638634
logger.info(f"Album upgrade processed.")
@@ -688,8 +684,8 @@ def main_loop() -> None:
688684

689685
# Sleep at the end of the cycle only
690686
logger.info(f"Cycle complete. Sleeping {SLEEP_DURATION}s before next cycle...")
691-
time.sleep(SLEEP_DURATION)
692687
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
688+
time.sleep(SLEEP_DURATION)
693689

694690

695691
if __name__ == "__main__":

missing/album.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def process_albums_missing(processed_albums: List[int] = None) -> List[int]:
143143

144144
processed_count += 1
145145
logger.info(f"Album processed. Sleeping {SLEEP_DURATION}s...")
146-
time.sleep(SLEEP_DURATION)
147146
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
147+
time.sleep(SLEEP_DURATION)
148148

149149
# Return updated processed list
150150
return processed_albums + newly_processed

missing/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def process_artists_missing(processed_artists: List[int] = None) -> List[int]:
134134

135135
processed_count += 1
136136
logger.info(f"Processed artist. Sleeping {SLEEP_DURATION}s...")
137-
time.sleep(SLEEP_DURATION)
138137
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
138+
time.sleep(SLEEP_DURATION)
139139

140140
# Return updated processed list
141141
return processed_artists + newly_processed

upgrade/album.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def process_album_upgrades() -> bool:
171171
if not ref_resp or "id" not in ref_resp:
172172
logger.warning("WARNING: Refresh command failed. Skipping this album.")
173173
time.sleep(10)
174-
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
175174
continue
176175
logger.info(f"Refresh accepted (ID={ref_resp['id']}). Waiting 5s...")
177176
time.sleep(5)
@@ -185,12 +184,11 @@ def process_album_upgrades() -> bool:
185184
else:
186185
logger.warning(f"WARNING: AlbumSearch failed for album ID={album_id}.")
187186
time.sleep(10)
188-
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
189187
continue
190188

191189
logger.info(f"Sleeping {SLEEP_DURATION}s after upgrade attempt...")
192-
time.sleep(SLEEP_DURATION)
193190
logger.info("⭐ Tool Great? Donate @ https://donate.plex.one for Daughter's College Fund!")
191+
time.sleep(SLEEP_DURATION)
194192

195193
logger.info(f"Completed processing {processed_count} album upgrades total in this run.")
196194
return processed_count > 0

0 commit comments

Comments
 (0)