Auto-DLP 2025.6.35__tar.gz → 2025.6.37__tar.gz

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.
Files changed (36) hide show
  1. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/PKG-INFO +1 -1
  2. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/downloader.py +4 -4
  3. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/redownloading.py +5 -5
  4. auto_dlp-2025.6.37/auto_dlp/version.py +1 -0
  5. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/pyproject.toml +1 -1
  6. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/vinc.json +2 -2
  7. auto_dlp-2025.6.35/auto_dlp/version.py +0 -1
  8. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/.gitignore +0 -0
  9. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/LICENSE.txt +0 -0
  10. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/README.md +0 -0
  11. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/YoutubeDataAPIv3.py +0 -0
  12. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/__init__.py +0 -0
  13. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/__main__.py +0 -0
  14. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/adb.py +0 -0
  15. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/adb_fs.py +0 -0
  16. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/adb_fs_cleaning.py +0 -0
  17. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/age_hints.py +0 -0
  18. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/channels.py +0 -0
  19. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/codecs.py +0 -0
  20. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/config_intepreter.py +0 -0
  21. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/download_manager.py +0 -0
  22. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/example_file.py +0 -0
  23. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/ffmpeg.py +0 -0
  24. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/file_cleaning.py +0 -0
  25. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/file_locations.py +0 -0
  26. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/fs_sync.py +0 -0
  27. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/metadata.py +0 -0
  28. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/name_cleaning.py +0 -0
  29. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/playlist_items.py +0 -0
  30. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/terminal_formatting.py +0 -0
  31. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/thumbnails.py +0 -0
  32. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/unavailable_items.py +0 -0
  33. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/utils.py +0 -0
  34. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/auto_dlp/variables.py +0 -0
  35. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/icon.png +0 -0
  36. {auto_dlp-2025.6.35 → auto_dlp-2025.6.37}/makefile +0 -0
@@ -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
@@ -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)
@@ -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))
@@ -0,0 +1 @@
1
+ program_version = "2025.6.37"
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "Auto-DLP"
7
- version = "2025.6.35" # vinc
7
+ version = "2025.6.37" # vinc
8
8
  authors = [
9
9
  { name = "Vorak", email = "5m9mnf37q@mozmail.com" },
10
10
  ]
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "template": "<YEAR>.<MONTH>.<COUNTER>",
3
- "version": "2025.6.35",
3
+ "version": "2025.6.37",
4
4
  "YEAR": 2025,
5
5
  "MONTH": 6,
6
- "COUNTER": 35,
6
+ "COUNTER": 37,
7
7
  "targets": {
8
8
  "pyproject.toml": {
9
9
  "find": "\"<VERSION>\"\\s*#\\s*vinc",
@@ -1 +0,0 @@
1
- program_version = "2025.6.35"
File without changes
File without changes
File without changes
File without changes
File without changes