gamdl 3.4__tar.gz → 3.5__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 (50) hide show
  1. {gamdl-3.4 → gamdl-3.5}/PKG-INFO +1 -1
  2. gamdl-3.5/gamdl/__init__.py +1 -0
  3. {gamdl-3.4 → gamdl-3.5}/gamdl/api/itunes.py +2 -1
  4. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/base.py +5 -0
  5. {gamdl-3.4 → gamdl-3.5}/gamdl.egg-info/PKG-INFO +1 -1
  6. {gamdl-3.4 → gamdl-3.5}/pyproject.toml +1 -1
  7. gamdl-3.4/gamdl/__init__.py +0 -1
  8. {gamdl-3.4 → gamdl-3.5}/LICENSE +0 -0
  9. {gamdl-3.4 → gamdl-3.5}/README.md +0 -0
  10. {gamdl-3.4 → gamdl-3.5}/gamdl/__main__.py +0 -0
  11. {gamdl-3.4 → gamdl-3.5}/gamdl/api/__init__.py +0 -0
  12. {gamdl-3.4 → gamdl-3.5}/gamdl/api/apple_music.py +0 -0
  13. {gamdl-3.4 → gamdl-3.5}/gamdl/api/constants.py +0 -0
  14. {gamdl-3.4 → gamdl-3.5}/gamdl/api/exceptions.py +0 -0
  15. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/__init__.py +0 -0
  16. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/cli.py +0 -0
  17. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/cli_config.py +0 -0
  18. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/config_file.py +0 -0
  19. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/constants.py +0 -0
  20. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/database.py +0 -0
  21. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/interactive_prompts.py +0 -0
  22. {gamdl-3.4 → gamdl-3.5}/gamdl/cli/utils.py +0 -0
  23. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/__init__.py +0 -0
  24. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/amdecrypt.py +0 -0
  25. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/base.py +0 -0
  26. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/constants.py +0 -0
  27. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/downloader.py +0 -0
  28. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/enums.py +0 -0
  29. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/exceptions.py +0 -0
  30. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/music_video.py +0 -0
  31. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/song.py +0 -0
  32. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/types.py +0 -0
  33. {gamdl-3.4 → gamdl-3.5}/gamdl/downloader/uploaded_video.py +0 -0
  34. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/__init__.py +0 -0
  35. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/constants.py +0 -0
  36. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/enums.py +0 -0
  37. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/exceptions.py +0 -0
  38. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/interface.py +0 -0
  39. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/music_video.py +0 -0
  40. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/song.py +0 -0
  41. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/types.py +0 -0
  42. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/uploaded_video.py +0 -0
  43. {gamdl-3.4 → gamdl-3.5}/gamdl/interface/wvd.py +0 -0
  44. {gamdl-3.4 → gamdl-3.5}/gamdl/utils.py +0 -0
  45. {gamdl-3.4 → gamdl-3.5}/gamdl.egg-info/SOURCES.txt +0 -0
  46. {gamdl-3.4 → gamdl-3.5}/gamdl.egg-info/dependency_links.txt +0 -0
  47. {gamdl-3.4 → gamdl-3.5}/gamdl.egg-info/entry_points.txt +0 -0
  48. {gamdl-3.4 → gamdl-3.5}/gamdl.egg-info/requires.txt +0 -0
  49. {gamdl-3.4 → gamdl-3.5}/gamdl.egg-info/top_level.txt +0 -0
  50. {gamdl-3.4 → gamdl-3.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamdl
3
- Version: 3.4
3
+ Version: 3.5
4
4
  Summary: A command-line app for downloading Apple Music songs, music videos and post videos.
5
5
  License-Expression: MIT
6
6
  Project-URL: Repository, https://github.com/glomatico/gamdl
@@ -0,0 +1 @@
1
+ __version__ = "3.5"
@@ -77,6 +77,7 @@ class ItunesApi:
77
77
 
78
78
  client = httpx.AsyncClient(
79
79
  timeout=60.0,
80
+ follow_redirects=True,
80
81
  )
81
82
 
82
83
  return cls(
@@ -133,7 +134,7 @@ class ItunesApi:
133
134
  response = await self.client.get(
134
135
  ITUNES_PAGE_API_URL.format(media_type=media_type, media_id=media_id),
135
136
  headers={
136
- "X-Apple-Store-Front": f"{self.storefront_id}-1,32 t:music31",
137
+ "X-Apple-Store-Front": f"{self.storefront_id},32 t:music31",
137
138
  },
138
139
  )
139
140
  response.raise_for_status()
@@ -133,6 +133,11 @@ class AppleMusicBaseInterface:
133
133
  itunes_api = itunes_api or await ItunesApi.create(
134
134
  storefront=apple_music_api.storefront,
135
135
  language=apple_music_api.language,
136
+ **(
137
+ {"storefront_id": None}
138
+ if apple_music_api.storefront.lower() != "us"
139
+ else {}
140
+ ),
136
141
  )
137
142
  cdm = cls.create_cdm(wvd_path)
138
143
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gamdl
3
- Version: 3.4
3
+ Version: 3.5
4
4
  Summary: A command-line app for downloading Apple Music songs, music videos and post videos.
5
5
  License-Expression: MIT
6
6
  Project-URL: Repository, https://github.com/glomatico/gamdl
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gamdl"
3
- version = "3.4"
3
+ version = "3.5"
4
4
  description = "A command-line app for downloading Apple Music songs, music videos and post videos."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1 +0,0 @@
1
- __version__ = "3.4"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes