Skip to content

Commit

Permalink
ccMixter: Handle spaces in URLs (#3907)
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound authored Mar 13, 2024
1 parent d80b590 commit 4176f6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion catalog/dags/providers/provider_api_scripts/cc_mixter.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _get_audio_files(

files = [
{
"url": file["download_url"],
"url": file["download_url"].replace(" ", "%20"),
"filesize": file["file_rawsize"],
"filetype": file["file_format_info"]["default-ext"],
"sample_rate": self._get_sample_rate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"VBR",
"instrumental"
],
"url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.mp3",
"url": "https://ccmixter.org/content/testuser/testuser%20-%20Test_Music.mp3",
"sample_rate": 44100,
"filetype": "mp3",
"filesize": 11150278,
"duration": 346000,
"alt_files": [
{
"url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.flac",
"url": "https://ccmixter.org/content/testuser/testuser%20-%20Test_Music.flac",
"sample_rate": 44000,
"filetype": "flac",
"filesize": 111502780,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"file_order": 0,
"file_is_remote": 0,
"file_num_download": 0,
"download_url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.zip",
"download_url": "https://ccmixter.org/content/testuser/testuser - Test_Music.zip",
"local_path": "/var/www/ccmixter/content/testuser/testuser_-_Test_Music.zip",
"file_rawsize": 11150278
},
Expand Down Expand Up @@ -74,7 +74,7 @@
"file_order": 0,
"file_is_remote": 0,
"file_num_download": 0,
"download_url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.flac",
"download_url": "https://ccmixter.org/content/testuser/testuser - Test_Music.flac",
"local_path": "/var/www/ccmixter/content/testuser/testuser_-_Test_Music.flac",
"file_rawsize": 111502780
},
Expand All @@ -100,7 +100,7 @@
"file_order": 0,
"file_is_remote": 0,
"file_num_download": 0,
"download_url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.mp3",
"download_url": "https://ccmixter.org/content/testuser/testuser - Test_Music.mp3",
"local_path": "/var/www/ccmixter/content/testuser/testuser_-_Test_Music.mp3",
"file_rawsize": 11150278
}
Expand Down

0 comments on commit 4176f6e

Please sign in to comment.