1
0
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:
Dag
2023-10-13 20:48:08 +02:00
committed by GitHub
parent fd52b9b9a4
commit 5f37c72be0
9 changed files with 46 additions and 53 deletions

View File

@@ -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 = [];