Auto-DLP 2025.6.36__tar.gz → 2025.6.38__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.36 → auto_dlp-2025.6.38}/PKG-INFO +1 -1
  2. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/downloader.py +4 -4
  3. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/redownloading.py +2 -2
  4. auto_dlp-2025.6.38/auto_dlp/version.py +1 -0
  5. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/pyproject.toml +1 -1
  6. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/vinc.json +2 -2
  7. auto_dlp-2025.6.36/auto_dlp/version.py +0 -1
  8. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/.gitignore +0 -0
  9. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/LICENSE.txt +0 -0
  10. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/README.md +0 -0
  11. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/YoutubeDataAPIv3.py +0 -0
  12. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/__init__.py +0 -0
  13. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/__main__.py +0 -0
  14. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/adb.py +0 -0
  15. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/adb_fs.py +0 -0
  16. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/adb_fs_cleaning.py +0 -0
  17. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/age_hints.py +0 -0
  18. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/channels.py +0 -0
  19. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/codecs.py +0 -0
  20. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/config_intepreter.py +0 -0
  21. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/download_manager.py +0 -0
  22. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/example_file.py +0 -0
  23. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/ffmpeg.py +0 -0
  24. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/file_cleaning.py +0 -0
  25. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/file_locations.py +0 -0
  26. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/fs_sync.py +0 -0
  27. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/metadata.py +0 -0
  28. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/name_cleaning.py +0 -0
  29. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/playlist_items.py +0 -0
  30. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/terminal_formatting.py +0 -0
  31. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/thumbnails.py +0 -0
  32. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/unavailable_items.py +0 -0
  33. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/utils.py +0 -0
  34. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/auto_dlp/variables.py +0 -0
  35. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/icon.png +0 -0
  36. {auto_dlp-2025.6.36 → auto_dlp-2025.6.38}/makefile +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Auto-DLP
3
- Version: 2025.6.36
3
+ Version: 2025.6.38
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
+ folder = fs.download_cache_trash() / artist
118
+ fs.touch_folder(folder)
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
@@ -84,7 +84,7 @@ def _iter_playlists(config, artist=None):
84
84
 
85
85
  def _get_obj_locations(config, obj_id):
86
86
  obj_re = re.compile(obj_id, flags=re.IGNORECASE)
87
-
87
+
88
88
  for playlist in _iter_playlists(config):
89
89
  if playlist.oid == obj_id or obj_re.fullmatch(playlist.name) is not None:
90
90
  yield playlist
@@ -0,0 +1 @@
1
+ program_version = "2025.6.38"
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "Auto-DLP"
7
- version = "2025.6.36" # vinc
7
+ version = "2025.6.38" # 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.36",
3
+ "version": "2025.6.38",
4
4
  "YEAR": 2025,
5
5
  "MONTH": 6,
6
- "COUNTER": 36,
6
+ "COUNTER": 38,
7
7
  "targets": {
8
8
  "pyproject.toml": {
9
9
  "find": "\"<VERSION>\"\\s*#\\s*vinc",
@@ -1 +0,0 @@
1
- program_version = "2025.6.36"
File without changes
File without changes
File without changes
File without changes
File without changes