mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 22:55:18 +00:00 
			
		
		
		
	[acast] Remove ACastBaseIE
No longer necessary as _API_BASE_URL is used by ACastChannelIE only
This commit is contained in:
		| @@ -8,11 +8,7 @@ from ..compat import compat_str | |||||||
| from ..utils import int_or_none | from ..utils import int_or_none | ||||||
|  |  | ||||||
|  |  | ||||||
| class ACastBaseIE(InfoExtractor): | class ACastIE(InfoExtractor): | ||||||
|     _API_BASE_URL = 'https://www.acast.com/api/' |  | ||||||
|  |  | ||||||
|  |  | ||||||
| class ACastIE(ACastBaseIE): |  | ||||||
|     IE_NAME = 'acast' |     IE_NAME = 'acast' | ||||||
|     _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P<channel>[^/]+)/(?P<id>[^/#?]+)' |     _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P<channel>[^/]+)/(?P<id>[^/#?]+)' | ||||||
|     _TEST = { |     _TEST = { | ||||||
| @@ -49,7 +45,7 @@ class ACastIE(ACastBaseIE): | |||||||
|         } |         } | ||||||
|  |  | ||||||
|  |  | ||||||
| class ACastChannelIE(ACastBaseIE): | class ACastChannelIE(InfoExtractor): | ||||||
|     IE_NAME = 'acast:channel' |     IE_NAME = 'acast:channel' | ||||||
|     _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P<id>[^/#?]+)' |     _VALID_URL = r'https?://(?:www\.)?acast\.com/(?P<id>[^/#?]+)' | ||||||
|     _TEST = { |     _TEST = { | ||||||
| @@ -61,6 +57,7 @@ class ACastChannelIE(ACastBaseIE): | |||||||
|         }, |         }, | ||||||
|         'playlist_mincount': 20, |         'playlist_mincount': 20, | ||||||
|     } |     } | ||||||
|  |     _API_BASE_URL = 'https://www.acast.com/api/' | ||||||
|  |  | ||||||
|     @classmethod |     @classmethod | ||||||
|     def suitable(cls, url): |     def suitable(cls, url): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
					Yen Chi Hsuan