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)

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: ;)


All times are GMT. The time now is 05:42.

vBulletin® Version 3.8.8