mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
05462831ad
commit
3d031dc7c6
2 changed files with 10 additions and 2 deletions
|
@ -243,8 +243,8 @@ Options All -Indexes
|
||||||
RewriteRule ^program/([0-9]+)/([0-9]+)(/.*)?$ view/?playlist_id=$1&playlist_index=$2 [QSA]
|
RewriteRule ^program/([0-9]+)/([0-9]+)(/.*)?$ view/?playlist_id=$1&playlist_index=$2 [QSA]
|
||||||
RewriteRule ^program/([0-9]+)(/.*)?$ view/?playlist_id=$1 [QSA]
|
RewriteRule ^program/([0-9]+)(/.*)?$ view/?playlist_id=$1 [QSA]
|
||||||
RewriteRule ^viewProgram/([0-9]+).*?$ view/channelProgram.php?program_id=$1 [QSA]
|
RewriteRule ^viewProgram/([0-9]+).*?$ view/channelProgram.php?program_id=$1 [QSA]
|
||||||
RewriteRule ^favorite/?$ view/?playlist_id=favorite [QSA]
|
RewriteRule ^favorite/?$ view/?playlist_name=favorite [QSA]
|
||||||
RewriteRule ^watch-later/?$ view/?playlist_id=watch-later [QSA]
|
RewriteRule ^watch-later/?$ view/?playlist_name=watch-later [QSA]
|
||||||
|
|
||||||
#manager videos
|
#manager videos
|
||||||
RewriteRule ^orphanFiles$ view/orphanFiles.php [NC,L]
|
RewriteRule ^orphanFiles$ view/orphanFiles.php [NC,L]
|
||||||
|
|
|
@ -22,6 +22,14 @@ if (!empty($global['systemRootPath']) && empty($config)) {
|
||||||
error_log(json_encode($global));
|
error_log(json_encode($global));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($_GET['playlist_name']) && empty($_GET['playlist_id'])){
|
||||||
|
if ($_GET['playlist_name'] == "favorite") {
|
||||||
|
$_GET['playlist_id'] = 'favorite';
|
||||||
|
} else {
|
||||||
|
$_GET['playlist_id'] = 'watch-later';
|
||||||
|
}
|
||||||
|
}
|
||||||
require_once $global['systemRootPath'].'plugin/AVideoPlugin.php';
|
require_once $global['systemRootPath'].'plugin/AVideoPlugin.php';
|
||||||
$firstPage = AVideoPlugin::getFirstPage();
|
$firstPage = AVideoPlugin::getFirstPage();
|
||||||
if (empty($firstPage) || !empty($_GET['videoName']) || !empty($_GET['v']) || !empty($_GET['playlist_id']) || !empty($_GET['liveVideoName']) || !empty($_GET['evideo'])) {
|
if (empty($firstPage) || !empty($_GET['videoName']) || !empty($_GET['v']) || !empty($_GET['playlist_id']) || !empty($_GET['liveVideoName']) || !empty($_GET['evideo'])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue