mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Update to ytdl-2021.01.08
This commit is contained in:
		| @@ -5819,3 +5819,20 @@ def format_field(obj, field, template='%s', ignore=(None, ''), default='', func= | ||||
|     if func and val not in ignore: | ||||
|         val = func(val) | ||||
|     return template % val if val not in ignore else default | ||||
|  | ||||
|  | ||||
| def clean_podcast_url(url): | ||||
|     return re.sub(r'''(?x) | ||||
|         (?: | ||||
|             (?: | ||||
|                 chtbl\.com/track| | ||||
|                 media\.blubrry\.com| # https://create.blubrry.com/resources/podcast-media-download-statistics/getting-started/ | ||||
|                 play\.podtrac\.com | ||||
|             )/[^/]+| | ||||
|             (?:dts|www)\.podtrac\.com/(?:pts/)?redirect\.[0-9a-z]{3,4}| # http://analytics.podtrac.com/how-to-measure | ||||
|             flex\.acast\.com| | ||||
|             pd(?: | ||||
|                 cn\.co| # https://podcorn.com/analytics-prefix/ | ||||
|                 st\.fm # https://podsights.com/docs/ | ||||
|             )/e | ||||
|         )/''', '', url) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan