Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
kusti8 committed May 10, 2016
2 parents e6e3c5e + 3406cd4 commit 85c2537
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ sudo mkdir /etc/chromium-browser/native-messaging-hosts
sudo cp native/run_omx.json /etc/chromium-browser/native-messaging-hosts/
chromium-browser chrome://extensions &
sudo leafpad /etc/chromium-browser/native-messaging-hosts/run_omx.json

Binary file removed native/rpi-youtube_5.0.0-1.deb
Binary file not shown.
Binary file added native/rpi-youtube_5.0.1-1.deb
Binary file not shown.
2 changes: 1 addition & 1 deletion native/run_omxplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ def read_thread_func():
try:
urllib2.urlopen('http://localhost:9192')
except:
subprocess.Popen(['nohup', 'ytdl_server.py', '&'], stdout=FNULL)
subprocess.Popen(['nohup', 'start_ytdl_server.sh', '&'], stdout=FNULL)

subprocess.call("omxplayergui ytdl " + url, shell=True)
14 changes: 14 additions & 0 deletions native/start_ytdl_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
ytdl_server.py > /dev/null 2>&1 &

while ((1)); do
if pgrep chromium-browse > /dev/null
then
#Fine
echo "HI" > /dev/null
else
wget -qO /dev/null http://localhost:9192/stop
exit 0
fi
sleep 5
done

0 comments on commit 85c2537

Please sign in to comment.