maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Youtube browser - mYTube - released (https://talk.maemo.org/showthread.php?t=17739)

Addison 2012-06-02 20:38

Re: Youtube browser - mYTube - released
 
It still won't die....


[1|user@Nokia-N800-43-7|~]killall mplayer & killall kill y & killall kill youtube-dl-x
[1] 14559
[2] 14560
killall: cannot kill pid 14551: No such process
killall: kill: no process killed
killall: y: no process killed
killall: kill: no process killed
killall: youtube-dl-x: no process killed
[1]- Exit 1 killall mplayer
[2]+ Exit 2 killall kill y

Addison 2012-06-02 20:51

Re: Youtube browser - mYTube - released
 
I only had Xterm running when I took this screenshot.

http://i46.tinypic.com/250uk37.png

auouymous 2012-06-03 01:03

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by Addison (Post 1216545)
It still won't die....
killall mplayer & killall kill y & killall kill youtube-dl-x

First off, the command should not have those kill's in it unless you have a process called "kill" that you want to kill multiple times. :) Second, the command I told you to use was killall mplayer youtube-dl-x y, one command, not three. Doesn't matter though because I forgot that python scripts show up as "python".

Run the y script to begin downloading a video and then run ps aux|grep python and see what it prints out. Should be something like python youtube-dl-x or python /usr/bin/youtube-dl-x on the end of the line. Use that in place of XXX below.

Code:

kill `ps aux|grep "python XXX"|awk '{print $2}'`
killall mplayer

That should kill youtube-dl-x and then kill mplayer.

Let me know what the y script shows up as by running ps aux and I can tell you how to kill it.

Addison 2012-06-03 02:02

Re: Youtube browser - mYTube - released
 
Okay.

[1|user@Nokia-N800-43-7|~]ps aux|grep python
19603 user 13400 SW< python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit
19716 user 3956 RW grep python



[1|user@Nokia-N800-43-7|~]kill `ps aux|grep "python /usr/bin/youtube-dl-x"|awk '{print $2}'`
-bash: kill: user: no such pid


[1|user@Nokia-N800-43-7|~]kill `ps aux|grep "python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit"|awk '{print $2}'`
-bash: kill: user: no such pid

Addison 2012-06-03 02:13

Re: Youtube browser - mYTube - released
 
Also, I tried to Google ffprobe for Diablo Maemo and I don't think it exists.

Oh well.

Cheers. :)

auouymous 2012-06-03 02:17

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by Addison (Post 1216621)
[1|user@Nokia-N800-43-7|~]kill `ps aux|grep "python /usr/bin/youtube-dl-x"|awk '{print $2}'`
-bash: kill: user: no such pid

Oops, forgot that maemo's ps reverses order of user and pid.

Code:

kill `ps aux|grep "python /usr/bin/youtube-dl-x"|awk '{print $1}'`
Try looking for a lame package for maemo and I can tell you how to convert to mp3 with it.

Addison 2012-06-03 02:27

Re: Youtube browser - mYTube - released
 
You're a genius. It worked. :)

I'll look for that lame package later tonight.

Thank you.

Addison 2012-06-03 04:13

Re: Youtube browser - mYTube - released
 
Would anyone here happen to have lame?

Debfarm failed to refresh.

Addison 2012-06-03 21:08

Re: Youtube browser - mYTube - released
 
Well, that was short lived.

I'll try to break this down.

/usr/bin/stop
kill `ps aux|grep "python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit"|awk '{print $2}'`
killall mplayer


I have one video fully downloaded in my Videos folder and I begin to download something else.

Once it begins to play:
ps aux|grep python
1879 user 13384 SW< python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit
1942 user 1796 RW grep python

I'll then try to kill the download:
stop
/usr/bin/stop: line 1: kill: user: no such pid
killall: cannot kill pid 1933: No such process

Mplayer does close so I'm not sure why there is an error on that last line.

I'll highlight both videos in File Manager and attempt to delete them.

One will go away, the other is currently being used so it has to stay.

I'll try to kill it again:
stop
/usr/bin/stop: line 1: kill: user: no such pid
killall: mplayer: no process killed

Back to File Manager and now I can delete the current video download.

Again, if the Videos folder is empty in the beginning, then there's nothing I can do to stop the current download.

There has been a couple of times where your new script fully worked though.

Maybe it's usually reading the wrong PID for some reason...

Any fresh ideas? :)

auouymous 2012-06-03 21:31

Re: Youtube browser - mYTube - released
 
Quote:

Originally Posted by Addison (Post 1216958)
There has been a couple of times where your new script fully worked though. Any fresh ideas? :)

You could try actually using my new script. Re-read my last post and edit the script before trying again. :)


All times are GMT. The time now is 13:06.

vBulletin® Version 3.8.8