mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-18 06:11:33 +02:00
fix(binance): plus some other tweaks (#3753)
This commit is contained in:
@@ -64,15 +64,20 @@ class PokemonTVBridge extends BridgeAbstract
|
||||
continue;
|
||||
}
|
||||
}
|
||||
switch ($element->{'media_type'}) {
|
||||
switch ($element->media_type) {
|
||||
case 'movie':
|
||||
$itemtitle = $element->{'channel_name'};
|
||||
case 'junior':
|
||||
case 'original':
|
||||
case 'non-animation':
|
||||
$itemtitle = $element->channel_name;
|
||||
break;
|
||||
case 'episode':
|
||||
$season = str_pad($mediaelement->{'season'}, 2, '0', STR_PAD_LEFT);
|
||||
$episode = str_pad($mediaelement->{'episode'}, 2, '0', STR_PAD_LEFT);
|
||||
$itemtitle = $element->{'channel_name'} . ' - S' . $season . 'E' . $episode;
|
||||
break;
|
||||
default:
|
||||
$itemtitle = '';
|
||||
}
|
||||
$streamurl = 'https://watch.pokemon.com/' . $this->getCountryCode() . '/#/player?id=' . $mediaelement->{'id'};
|
||||
$item = [];
|
||||
|
Reference in New Issue
Block a user