Closed marcbth closed 4 years ago
when I try
test.php
<?php require_once('include/initialize.inc.php'); require_once('include/library.inc.php'); global $cfg, $db; @ini_set('display_errors', 'On'); echo getYoutubeStreamUrl('TvnYmWpD_T8',''); ?>
then
I tried it also on my Win system with PHP 7.4.1 and everything works OK. So let's try to find out, why it's not working for you.
Since your test.php
gives you right url, youtube-dl
is up to date. But, to be 100% sure, please try to check what version you have (I use 2020.01.24 - it seems to be the latest version).
In latest commit (a74190c) I changed a little bit error handling for YT - now, in case of error, cog should turn into exclamation sign - there still will be no info about where error comes from, but at least you will know that procedure is done and something went wrong.
Function getYouTubeMPDUrl($url, $title = '')
, that had made problems before, was changed again - maybe these changes are the source of your problems. Try to change it to previous version: replace
preg_match_all('!\d+!', $f, $matches_f);
$format = array_search($matches_f[0], array_column($js['formats'], 'format_id'));
with
$format = array_search($f, array_column($js['formats'], 'format'));
PS Where exactly did you send your GitHub connection? I can't find it anywhere...
Regards, Artur
I write now a private email :-)
Hi Artur
its work again!!!
Perfect!!!
you want to take a look at my fork?
changed the skin and added this for me:
power off /reboot play cd /eject cd filemanager server settings
Glad to hear that :) Did you have to change anything to make it work?
I cloned webinterface
but don't know how to configure this. When I run [my_server_IP]/webinterface
I get:
Execute ./git.bash --get-branch
Result of ./git.bash --get-branch
release
Execute ./git.bash --get-commit
Result of ./git.bash --get-commit
c0d84d4a3682b19f9f63939ec52197aa1b92f02e
Execute ./git.bash --get-tag
Result of ./git.bash --get-tag
v1.0.0
Execute ./git.bash --get-tag
Result of ./git.bash --get-tag
v1.0.0
Execute ./git.bash --get-remote-tags
Result of ./git.bash --get-remote-tags
v1.0.0;v1.0.1;v1.0.2;v1.0.3;v1.0.4;v1.0.5;v1.0.6;v1.0.7;v1.0.8;v1.0.9;v1.0.9.1
Soul -M
Einstellungen
Netzwerkeinstellungen
NAS Anbindung
CD-Ripping
Qobuz
Tidal
System
upmpd_highresaudio
Module cant display while config does not exists
What am I doing wrong?
function getYouTubeStreamUrl($url, $title = ''){
is running
Hello Artur,
unfortunately youtube is not working again.
get only one rotary wheel in the search.
we had unfortunately already once.
send you my GitHub connection by private mail
cliff