maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] cuteTube - A feature-rich YouTube client (https://talk.maemo.org/showthread.php?t=65854)

AlMehdi 2010-11-23 05:26

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Can't play it from the program menu... but running it through terminal with "/usr/bin/python /opt/cutetube/cutetube.py" as user works good.

rohanhole 2010-11-23 05:58

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Any link to download and test ??? its not there in extras-devel

santiago 2010-11-23 06:13

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by marxian (Post 880773)
I've been having problems with the filesystem on my N900. The permissions are set incorrectly on the cutetube.py file, so it won't launch. I'm sorting it out now. :)

here is the desktop file it works set it like this, open cutetube.desktop on /usr/share/applications/hildon and overwrite and paste all of this


Code:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=false
Name=cutetube
Exec=/usr/bin/python '/opt/cutetube/cutetube.py'
Icon=cutetube
Type=Application
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

by backterck :)

daperl 2010-11-23 06:58

Re: [Announce] cuteTube - A feature-rich YouTube client
 
@marxian

Search results were very poor until I made the following changes:

Code:

-- cutetubewindows.py.orig        2010-11-22 22:51:33.000000000 -0800
+++ cutetubewindows.py        2010-11-22 22:52:20.000000000 -0800
@@ -477,10 +477,10 @@
        self.show()
        searchTerms = self.searchString.replace(" ", "+")
        if username == None:
-            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?vq=<%22" + searchTerms + "%22>&orderby=" + searchOrder
+            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?vq=" + searchTerms + "&orderby=" + searchOrder
            self.actionSearch.setVisible(True)
        else:
-            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?author=" + username + "&vq=<%22" + searchTerms + "%22>&orderby=" + searchOrder
+            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?author=" + username + "&vq=" + searchTerms + "&orderby=" + searchOrder
        print 'videoFeed',self.videoFeed
        self.yt = youtubeservice.YouTubeVideoFeed(self, self.videoFeed)
        self.connect(self.yt, SIGNAL("dataLoaded(PyQt_PyObject)"), self.addVideo)

Now search is poppin'!

You rock!

nicholes 2010-11-23 06:59

Re: [Announce] cuteTube - A feature-rich YouTube client
 
since i have updated cutetube it is not working at all !!

i start cute tube it keeps loading for 4-5 sec. and close it self(did not start)
i restart the phone but it is still same. i m not lucky today!
any sguession???

dsawhney 2010-11-23 07:04

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by nicholes (Post 880840)
since i have updated cutetube it is not working at all !!

i start cute tube it keeps loading for 4-5 sec. and close it self(did not start)
i restart the phone but it is still same. i m not lucky today!
any sguession???

become root and chmod +x /opt/cutetube/cutetube.py should fix the problem

nicholes 2010-11-23 07:15

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by dsawhney (Post 880843)
become root and chmod +x /opt/cutetube/cutetube.py should fix the problem

THANKS for the quick reply!! it is working now.

marxian 2010-11-23 09:32

Re: [Announce] cuteTube - A feature-rich YouTube client
 
cutetube 0.9.0-8 now in extras-devel. I had problems with the file system on my N900 last night, and I messed up the permissions on the cutetube.py file.

slender 2010-11-23 10:13

Re: [Announce] cuteTube - A feature-rich YouTube client
 
maybe still some file permission problems?

I updated to cutetube 0.9.0-8 and it keeps closing randomly BUT if I open it from terminal with command python2.5 cutetube.py it doesn't crash.

.edit
argh i dont now remember that were i root when I run it from cli.

marxian 2010-11-23 10:17

Re: [Announce] cuteTube - A feature-rich YouTube client
 
I get the same problem. I'll fix it and upload a new build. My head is all over the place atm. Need more sleep. :)

marxian 2010-11-23 12:08

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by daperl (Post 880839)
@marxian

Search results were very poor until I made the following changes:

Code:

-- cutetubewindows.py.orig        2010-11-22 22:51:33.000000000 -0800
+++ cutetubewindows.py        2010-11-22 22:52:20.000000000 -0800
@@ -477,10 +477,10 @@
        self.show()
        searchTerms = self.searchString.replace(" ", "+")
        if username == None:
-            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?vq=<%22" + searchTerms + "%22>&orderby=" + searchOrder
+            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?vq=" + searchTerms + "&orderby=" + searchOrder
            self.actionSearch.setVisible(True)
        else:
-            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?author=" + username + "&vq=<%22" + searchTerms + "%22>&orderby=" + searchOrder
+            self.videoFeed = "http://gdata.youtube.com/feeds/api/videos?author=" + username + "&vq=" + searchTerms + "&orderby=" + searchOrder
        print 'videoFeed',self.videoFeed
        self.yt = youtubeservice.YouTubeVideoFeed(self, self.videoFeed)
        self.connect(self.yt, SIGNAL("dataLoaded(PyQt_PyObject)"), self.addVideo)

Now search is poppin'!

You rock!

Of course! I left the '<' and '>' characters in the search terms. Doh. I'll change it. It also means I can use string formatting rather than concatenation.

As for the random crashing. It is stable when using
Code:

run-standalone.sh /opt/cutetube/cutetube.py
but crashes randomly when executing via the .desktop file. :confused:

extendedping 2010-11-23 15:12

Re: [Announce] cuteTube - A feature-rich YouTube client
 
I admit I have not had time to read this thread. Well the first version did not open and the newest just keeps crashing...so that is progress, I guess the next version will open and not crash...does look like a nice app once it is ironed out.

marxian 2010-11-23 15:54

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by extendedping (Post 881184)
I admit I have not had time to read this thread. Well the first version did not open and the newest just keeps crashing...so that is progress, I guess the next version will open and not crash...does look like a nice app once it is ironed out.

It runs fine from the terminal using the command in my last post, but not when launching from the menu/desktop. I still haven't figured out why. It doesn't make any sense, since the shortcut runs the same file.

blwetorch 2010-11-23 15:57

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Excuse me guys............I would like to install this app in my Nokia N900...................but where is the download available? How to install this?
Thanks

extendedping 2010-11-23 16:09

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by marxian (Post 881228)
It runs fine from the terminal using the command in my last post, but not when launching from the menu/desktop. I still haven't figured out why. It doesn't make any sense, since the shortcut runs the same file.

Please post the answer, what an annoying mystery :)

philh 2010-11-23 16:12

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by blwetorch (Post 881229)
Excuse me guys............I would like to install this app in my Nokia N900...................but where is the download available? How to install this?
Thanks

There is a link to an up to date file in the first post on the first page.

divan 2010-11-23 16:13

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Great application. But I confirm crashing when launched from Desktop. Crashes unexpectedly(while downloading, while viewing video). When launched from command line, seems to work correctly. Maybe some environment python-sensitive variables?

evan 2010-11-23 16:16

Re: [Announce] cuteTube - A feature-rich YouTube client
 
I installed 0.9.0-9 from the devel catalog.
It starts from the icon just fine. It also opens internet connection.
Just great!

blwetorch 2010-11-23 16:40

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Thanks philh....I shall give that a try.

marxian 2010-11-23 16:47

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by divan (Post 881241)
Great application. But I confirm crashing when launched from Desktop. Crashes unexpectedly(while downloading, while viewing video). When launched from command line, seems to work correctly. Maybe some environment python-sensitive variables?

I worked it out. I created a new .desktop file, but forgot to remove the osso-service parameter. From the py2deb wiki:

Note that you need the X-Osso-Service line only if you actually use osso services. Including that line in the .desktop file without proper handling of osso events in the application will result in the application being terminated shortly after startup.

I'll make the necessary changes and upload a new build shortly.

*sigh* :rolleyes: ;)

extendedping 2010-11-23 16:49

Re: [Announce] cuteTube - A feature-rich YouTube client
 
This will, along with bash and all gnu commands, fbreader, modrana, easy debian and fm radio be one of the reasons I am not jealous of all my android using buddies.

marxian 2010-11-23 17:00

Re: [Announce] cuteTube - A feature-rich YouTube client
 
OK. I've tested it, and it works. I can't believe how many hours I've wasted, when it was something so obvious. I even flashed the eMMC.

The new build is in extras-devel now. :D

marxian 2010-11-23 17:18

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by extendedping (Post 881283)
This will, along with bash and all gnu commands, fbreader, modrana, easy debian and fm radio be one of the reasons I am not jealous of all my android using buddies.

I owned a HTC Desire for a short while, and the only things I missed after selling it were the GMail and YouTube clients, so I'm hoping I can go some way to addressing that.

jayhule 2010-11-23 17:27

Re: [Announce] cuteTube - A feature-rich YouTube client
 
excited test this out, but got kind of a noob problem.
when trying to update there is a problem with conflicting packages,
the python2.5-qt4 network and another python2.5-qt4.

atilla 2010-11-23 17:43

Re: [Announce] cuteTube - A feature-rich YouTube client
 
amazing,finally a good working youtube app.
and the "back going" bug is away ;)
thanks for your great work marxian.

extendedping 2010-11-23 18:17

Re: [Announce] cuteTube - A feature-rich YouTube client
 
I have no idea if you could do this...pretty much the only time I want 3g is for youtube. Any way to make an option to switch to 3g when watching or downloading a vid? Or just have a checkbox to have the app enable 3g on start (if avaolable) and disable 3g on 0p close?

atilla 2010-11-23 18:28

Re: [Announce] cuteTube - A feature-rich YouTube client
 
try autodisconnect

marxian 2010-11-23 18:33

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by extendedping (Post 881361)
I have no idea if you could do this...pretty much the only time I want 3g is for youtube. Any way to make an option to switch to 3g when watching or downloading a vid? Or just have a checkbox to have the app enable 3g on start (if avaolable) and disable 3g on 0p close?

That should be possible. Currently, the application enables 'any' access point, which I assume will be a WiFi connection if available. I think I can obtain the list of available access points using DBus, and provide an option in the settings to select your preferred default connection. cuteTube can then attempt to connect to that access point on start-up.

Switching connection before playback/download would lead to performance issues IMO, because you would need to wait for the switch before even beginning to pass the stream to the media player.

snuski 2010-11-23 18:34

Re: [Announce] cuteTube - A feature-rich YouTube client
 
i downloaded this but after 1-3 minutes it closes is there any fix for that yet?

niqbal 2010-11-23 18:36

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by atilla (Post 881332)
amazing,finally a good working youtube app.
and the "back going" bug is away ;)
thanks for your great work marxian.

i have facing "back going" bug with the latest version. I press back button in media player and it goes back to media player main window and cutetube has already closed itself.

any solutions?

marxian 2010-11-23 18:37

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by snuski (Post 881376)
i downloaded this but after 1-3 minutes it closes is there any fix for that yet?

Yes, you need version 0.9.0-10. It's in extras-devel. If you do an update, you should find it.

snuski 2010-11-23 18:43

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by marxian (Post 881381)
Yes, you need version 0.9.0-10. It's in extras-devel. If you do an update, you should find it.

thnx it works now! see this is why i prefer the n900 over anything else other phones can brag about HD 720P video or high 1 Ghz from the box state or has more apps, but doesnt match the one happy helping maemo family ! :D

marxian 2010-11-23 18:51

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by niqbal (Post 881379)
i have facing "back going" bug with the latest version. I press back button in media player and it goes back to media player main window and cutetube has already closed itself.

any solutions?

Do you mean closed completely or minimised? When launching the media player, the task manager switches to the new window, and minimises the cuteTube window. I'm not sure if I can control this behaviour. I'm going to write an internal player anyway, so no task-switching will be necessary at that point.

niqbal 2010-11-23 18:57

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by marxian (Post 881394)
Do you mean closed completely or minimised? When launching the media player, the task manager switches to the new window, and minimises the cuteTube window. I'm not sure if I can control this behaviour. I'm going to write an internal player anyway, so no task-switching will be necessary at that point.

task-switching to media player works fine. Say i stop a video and press back button to go back to cutetube app. Oddly once or twice, cutetube was still there otherwise 95 percent of times cutetube is closed. it just started doing this with the .10 ver:cool:

lucky88shp 2010-11-23 19:00

Re: [Announce] cuteTube - A feature-rich YouTube client
 
@marxian
I cant express how awesum u r....U ARE REALLLLY AWESUM!!!:D
Upto this moment i was using one of the earlier builds, b4 it was uploaded to extras-devel and was very stable...Now this new one is better in terms of streaming as i barely had any buffering on a vid that was fast action and Im downloadin a torrent on my network pc at the same time!!!
So i confirm again, this build 0.9.0-10 is very stable and perfect!!:)

snuski 2010-11-23 19:03

Re: [Announce] cuteTube - A feature-rich YouTube client
 
hey i just noticed i cant play 720P video when i download a video and play it with media player why is it there?

lucky88shp 2010-11-23 19:06

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Ok well the buffering problem still occurs in some vids, but i think u mentioned b4 that it is all dependent on youtube server how it streams...but still one suggestion:
Is it possible for the video to keep buffering/loading while u pause it so if a specific vid keeps on buffering every few secs, we can pause it for a min or two and then watch the hwole vid without it stopping to buffer???

marxian 2010-11-23 19:11

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by snuski (Post 881403)
hey i just noticed i cant play 720P video when i download a video and play it with media player why is it there?

It's there for those that want to download videos at 720p to play on other devices. The feature was requested, and I included it. There's not much I can do if PLBKAC. ;)

tHMZ 2010-11-23 19:12

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Everything is OK. Except you still have a problem with most viewed. Not to be an idiot but this means a lot. I would like to view the most viewed instead of most viewed per month, And I don't think you have to set it to "today" instead of "month". All the new music videos are on top.

Thanks. Errything else works just fine. Downloading especially. Can you make mplayer stretch the video when you open it? Some videos are 2.35:1 by default, but some still don't fill the screen.

THANKS A BILLION TRILLIONS

QUESTION: Where do I get 0.9-10? Testing?

marxian 2010-11-23 19:13

Re: [Announce] cuteTube - A feature-rich YouTube client
 
Quote:

Originally Posted by lucky88shp (Post 881407)
Ok well the buffering problem still occurs in some vids, but i think u mentioned b4 that it is all dependent on youtube server how it streams...but still one suggestion:
Is it possible for the video to keep buffering/loading while u pause it so if a specific vid keeps on buffering every few secs, we can pause it for a min or two and then watch the hwole vid without it stopping to buffer???

The buffering is down to how the media player handles the stream. I can improve performance by placing a buffer between the stream and the media player. I will do this at some point.


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

vBulletin® Version 3.8.8