When running x callback link, the file linked in x-success only opens and doesn’t run
-
I called an x callback string
‘webbrowser.open('vlc-x-callback://x-callback-url/stream?' + url +'&x-success=pythonista:/ytdl/youtub-playlist2.py?action=run&x-source=Pythonista3')’
And it opens the video from the url in VLC but when it finishes playing it only sends me back to the file “youtub-playlist2.py” but it never runs it. How can I make it run this file when the video finishes?
-
last edited by cvp
-
@cvp nope. Sadly that doesn’t change anything
-
last edited by
-
@spike said:
&x-success=pythonista:/ytdl/youtub-playlist2.py?action=run
Should be
&x-success=pythonista3://ytdl/youtub-playlist2.py?action=run
without anything else, I think.
You have to be sure of your folder and file names, uppercase/lowercase sensitive
-
@spike this works
import webbrowser url = 'url=https://youtu.be/fgZgVNxhU04' webbrowser.open('vlc-x-callback://x-callback-url/stream?' + url +'&x-success=pythonista3://MesApps/MesPastels.py?action=run')