Auto-DLP 2025.6.29__py3-none-any.whl → 2025.6.31__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/redownloading.py CHANGED
@@ -2,7 +2,7 @@ import re
2
2
 
3
3
  import auto_dlp.downloader as downloader
4
4
  import auto_dlp.file_locations as fs
5
- from auto_dlp import playlist_items
5
+ from auto_dlp import playlist_items, add_color
6
6
  from auto_dlp.name_cleaning import clean_name
7
7
 
8
8
 
@@ -14,7 +14,7 @@ class PlaylistWrapper:
14
14
  self.oid = oid
15
15
 
16
16
  def __str__(self):
17
- return f"playlist {self.name} ({self.oid}) by {self.artist.name}"
17
+ return f"playlist {add_color(1, self.name)} ({self.oid}) by {add_color(2, self.artist.name)}"
18
18
 
19
19
  def items(self):
20
20
  for entry in playlist_items.get(self.config, self.oid):
@@ -39,7 +39,7 @@ class SongWrapper:
39
39
  self.playlist = playlist
40
40
 
41
41
  def __str__(self):
42
- return f"song {self.name} ({self.oid}) by {self.artist.name}"
42
+ return f"song {add_color(1, self.name)} ({self.oid}) by {add_color(2, self.artist.name)}"
43
43
 
44
44
  def get_file(self):
45
45
  if self.playlist is None:
@@ -51,7 +51,6 @@ class SongWrapper:
51
51
  file = self.get_file()
52
52
  if file is None: return
53
53
  print(f"Deleting {self}: {file}")
54
- return
55
54
  file.unlink(missing_ok=True)
56
55
  downloader.delete_cached_version(self.oid)
57
56
 
@@ -94,13 +93,13 @@ def _get_obj_locations(config, obj_id):
94
93
  yield playlist
95
94
 
96
95
 
97
- def redownload(config, obj):
98
- matches = list(_get_obj_locations(config, obj))
99
- print(f"Found the following matches for {obj}:")
96
+ def redownload(config, obj_id):
97
+ matches = list(_get_obj_locations(config, obj_id))
98
+ print(f"Found the following matches for {obj_id}:")
100
99
  for obj in matches:
101
100
  print(f"Found {obj}")
102
101
 
103
- confirmation = input(f"Really redownload all matches for {obj}? (y/n) ")
102
+ confirmation = input(f"Really redownload all matches for {obj_id}? (y/n) ")
104
103
  if confirmation.strip() != "y":
105
104
  print("Aborted")
106
105
  return
auto_dlp/version.py CHANGED
@@ -1 +1 @@
1
- program_version = "2025.6.29"
1
+ program_version = "2025.6.31"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Auto-DLP
3
- Version: 2025.6.29
3
+ Version: 2025.6.31
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
@@ -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=d0uCmQTZhpPtl95Y76gUZn5efAVDkb3H0ybMUHUBuWs,3284
21
+ auto_dlp/redownloading.py,sha256=D5xKRO48FO_5Z5k2_P9p3Gj4zg-IjSBU6kvZy93NVVI,3348
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=m99cbH5I42MtmFFFbpzNSIRRwNoAst5uFlTFnEUMFsg,29
28
- auto_dlp-2025.6.29.dist-info/METADATA,sha256=59yyOmQtojcaUBa9yjeRpjgEOIFigMUMEbFvNkaKBcI,5585
29
- auto_dlp-2025.6.29.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
- auto_dlp-2025.6.29.dist-info/entry_points.txt,sha256=tXzdP_Yx88UaxQj1K3eeMF6LjKDMlN_OOcgq0Io4bUs,58
31
- auto_dlp-2025.6.29.dist-info/licenses/LICENSE.txt,sha256=kjGr1EnB89PoRKf-Bzx0I7DB-aNHtQk6kPYAEA--rZk,1069
32
- auto_dlp-2025.6.29.dist-info/RECORD,,
27
+ auto_dlp/version.py,sha256=342vE4fN2MwqOC19e_pYv7ICPU3jKsvzzBnLQKPy1vo,29
28
+ auto_dlp-2025.6.31.dist-info/METADATA,sha256=bT-YhjGHierIIJDMCmVEOMLn-VYrD3Rplwhmnl46ZZM,5585
29
+ auto_dlp-2025.6.31.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
+ auto_dlp-2025.6.31.dist-info/entry_points.txt,sha256=tXzdP_Yx88UaxQj1K3eeMF6LjKDMlN_OOcgq0Io4bUs,58
31
+ auto_dlp-2025.6.31.dist-info/licenses/LICENSE.txt,sha256=kjGr1EnB89PoRKf-Bzx0I7DB-aNHtQk6kPYAEA--rZk,1069
32
+ auto_dlp-2025.6.31.dist-info/RECORD,,