Auto-DLP 2025.6.35__py3-none-any.whl → 2025.6.37__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
auto_dlp/downloader.py CHANGED
@@ -111,9 +111,9 @@ def get_song_file(song_id, config):
111
111
  return path
112
112
 
113
113
 
114
- def delete_cached_version(song_id: str):
114
+ def delete_cached_version(artist: str, song_id: str):
115
115
  song_file: Path = _try_get_song_file(song_id)
116
116
  if song_file is not None:
117
- # path.unlink(missing_ok=True) # Stuff is no longer just deleted
118
- fs.touch_folder(fs.download_cache_trash())
119
- shutil.move(song_file, fs.download_cache_trash() / song_file.name)
117
+ directory = fs.download_cache_trash() / artist
118
+ fs.touch_folder(directory)
119
+ shutil.move(song_file, folder / song_file.name)
auto_dlp/redownloading.py CHANGED
@@ -53,7 +53,7 @@ class SongWrapper:
53
53
  if file is None: return
54
54
  print(f"Deleting {self}: {file}")
55
55
  file.unlink(missing_ok=True)
56
- downloader.delete_cached_version(self.oid)
56
+ downloader.delete_cached_version(self.artist.name, self.oid)
57
57
 
58
58
 
59
59
  # Yields: song name, song id and artist
@@ -85,14 +85,14 @@ def _iter_playlists(config, artist=None):
85
85
  def _get_obj_locations(config, obj_id):
86
86
  obj_re = re.compile(obj_id, flags=re.IGNORECASE)
87
87
 
88
- for song in _iter_songs(config):
89
- if song.oid == obj_id or obj_re.fullmatch(song.name) is not None:
90
- yield song
91
-
92
88
  for playlist in _iter_playlists(config):
93
89
  if playlist.oid == obj_id or obj_re.fullmatch(playlist.name) is not None:
94
90
  yield playlist
95
91
 
92
+ for song in _iter_songs(config):
93
+ if song.oid == obj_id or obj_re.fullmatch(song.name) is not None:
94
+ yield song
95
+
96
96
 
97
97
  def redownload(config, obj_id):
98
98
  matches = list(_get_obj_locations(config, obj_id))
auto_dlp/version.py CHANGED
@@ -1 +1 @@
1
- program_version = "2025.6.35"
1
+ program_version = "2025.6.37"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Auto-DLP
3
- Version: 2025.6.35
3
+ Version: 2025.6.37
4
4
  Summary: A simple and lightweight system for downloading and managing youtube playlists and songs (based on yt-dlp)
5
5
  Author-email: Vorak <5m9mnf37q@mozmail.com>
6
6
  License-File: LICENSE.txt
@@ -9,7 +9,7 @@ auto_dlp/channels.py,sha256=wX7SekCbxZqEKUXJJqDjZUmWTmGJyw2rv4XvjaUzdtg,595
9
9
  auto_dlp/codecs.py,sha256=7MY_u_X9IRieBjfbGmJH0As4qUAKd6IbvRiJgunAU4o,99
10
10
  auto_dlp/config_intepreter.py,sha256=yOMYN3LyS5HV4cI9k5vxttBaoYequPC94x3YNUSfmz4,9789
11
11
  auto_dlp/download_manager.py,sha256=sJXfvEgwGeVcKDqeWMcZzqiEOQLmURFE-UiAYY9gplI,2251
12
- auto_dlp/downloader.py,sha256=aPtwSwlBQ_EBK8of2pA_2V1N_Ttv8UprCSJ5FyhjDas,3620
12
+ auto_dlp/downloader.py,sha256=bnNUUSYYuvyw5QRNjriUrOlpI9EF3EZkLoqxy0YxOl4,3580
13
13
  auto_dlp/example_file.py,sha256=Ouk2MNGENR9DUAyz5fsy5pvPDrxK2BVWyut1KM7JGpI,1583
14
14
  auto_dlp/ffmpeg.py,sha256=dj6rEjVuk9QMw_Tg7YS6KGSRq9hTOARXQAHXxltAc0o,1473
15
15
  auto_dlp/file_cleaning.py,sha256=OmQNIC7QSH6gFHnxngZWO_3WUgzivG8OVJMrr3VSieo,1017
@@ -18,15 +18,15 @@ auto_dlp/fs_sync.py,sha256=Pab9IbhI-MCL_-v4i3PT6ESRvgSrqo7mpC94je-ONHQ,80
18
18
  auto_dlp/metadata.py,sha256=GZ7mjnyET1_YUksN1KGG_NvwPxvQLDAJr6wfRY7zJZQ,2506
19
19
  auto_dlp/name_cleaning.py,sha256=Ryx7FmBHqDIF_XeYqHHTJTaRcozJ0frzpfYbzYkNg9c,1530
20
20
  auto_dlp/playlist_items.py,sha256=13BEryw_n4mo7R_gt9ewWfcGra2397P7cPN6FhFCZVk,1789
21
- auto_dlp/redownloading.py,sha256=cLWaVg5Qc0Zw8hy7BcuM-8dladDHW-njW6DSoPPvRQU,3388
21
+ auto_dlp/redownloading.py,sha256=Lmu02M6JRpSwpV7FHT_6gAMrbSe4QQhQWOy_n_xM1ro,3406
22
22
  auto_dlp/terminal_formatting.py,sha256=bFEOXB0EwfK95L1xrBGwsBmT6fkNXRDGE82JW1GAnhY,77
23
23
  auto_dlp/thumbnails.py,sha256=PEDQgd-kbl9ZSAIUgrW5Oc_-G1-4J4H-Mi4736gt6sI,1467
24
24
  auto_dlp/unavailable_items.py,sha256=7tLKIJ8aa1jqF5JZ_UOlqmTn9ieFFpDK6EbozL6-Qy0,666
25
25
  auto_dlp/utils.py,sha256=Qsfy1pzQMCQwDJuSmE5v71eGhRRt0hSpak_S2AEQRJw,937
26
26
  auto_dlp/variables.py,sha256=m5Ymc17pfjfjQwmQlWJp9Qt-Fi6uN5_hbpWO98oLC-0,18
27
- auto_dlp/version.py,sha256=RarYM48Q6cAtMpqHgJEr5L0jkfGtZGuCgzEziUE0QWY,29
28
- auto_dlp-2025.6.35.dist-info/METADATA,sha256=MHsj-jxKU8t6UUPdAvJRyZBiH1aPojVO6DZdcHdYWjM,5585
29
- auto_dlp-2025.6.35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
- auto_dlp-2025.6.35.dist-info/entry_points.txt,sha256=tXzdP_Yx88UaxQj1K3eeMF6LjKDMlN_OOcgq0Io4bUs,58
31
- auto_dlp-2025.6.35.dist-info/licenses/LICENSE.txt,sha256=kjGr1EnB89PoRKf-Bzx0I7DB-aNHtQk6kPYAEA--rZk,1069
32
- auto_dlp-2025.6.35.dist-info/RECORD,,
27
+ auto_dlp/version.py,sha256=vJN8TOmmi-RbpAc2bJx7mUsDZ_-nMLe18HPOgucbHmE,29
28
+ auto_dlp-2025.6.37.dist-info/METADATA,sha256=5_ofHQUOhseUUyJc5MtPKY4SQRUaBBCcz1u_kiUz4Yo,5585
29
+ auto_dlp-2025.6.37.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
+ auto_dlp-2025.6.37.dist-info/entry_points.txt,sha256=tXzdP_Yx88UaxQj1K3eeMF6LjKDMlN_OOcgq0Io4bUs,58
31
+ auto_dlp-2025.6.37.dist-info/licenses/LICENSE.txt,sha256=kjGr1EnB89PoRKf-Bzx0I7DB-aNHtQk6kPYAEA--rZk,1069
32
+ auto_dlp-2025.6.37.dist-info/RECORD,,