mirror of
				https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
				synced 2025-11-04 05:20:34 +00:00 
			
		
		
		
	Merge pull request #214 from bladeSk/bugfix/podcast-tuple
Fix podcast downloader not expecting podcast data as a tuple
This commit is contained in:
		
						commit
						c40d89b458
					
				@ -75,7 +75,7 @@ def download_episode(episode_id) -> None:
 | 
				
			|||||||
        filename = podcast_name + ' - ' + episode_name
 | 
					        filename = podcast_name + ' - ' + episode_name
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        direct_download_url = ZSpotify.invoke_url(
 | 
					        direct_download_url = ZSpotify.invoke_url(
 | 
				
			||||||
            'https://api-partner.spotify.com/pathfinder/v1/query?operationName=getEpisode&variables={"uri":"spotify:episode:' + episode_id + '"}&extensions={"persistedQuery":{"version":1,"sha256Hash":"224ba0fd89fcfdfb3a15fa2d82a6112d3f4e2ac88fba5c6713de04d1b72cf482"}}')["data"]["episode"]["audio"]["items"][-1]["url"]
 | 
					            'https://api-partner.spotify.com/pathfinder/v1/query?operationName=getEpisode&variables={"uri":"spotify:episode:' + episode_id + '"}&extensions={"persistedQuery":{"version":1,"sha256Hash":"224ba0fd89fcfdfb3a15fa2d82a6112d3f4e2ac88fba5c6713de04d1b72cf482"}}')[1]["data"]["episode"]["audio"]["items"][-1]["url"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        download_directory = os.path.join(ZSpotify.CONFIG.get_root_podcast_path(), extra_paths)
 | 
					        download_directory = os.path.join(ZSpotify.CONFIG.get_root_podcast_path(), extra_paths)
 | 
				
			||||||
        download_directory = os.path.realpath(download_directory)
 | 
					        download_directory = os.path.realpath(download_directory)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user