maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [application] pyRadio (Pandora) (https://talk.maemo.org/showthread.php?t=56036)

fatalsaint 2011-07-21 13:12

Re: [application] pyRadio (Pandora)
 
In pyRadio.py line 308 should read:
Code:

position = "%02d:%02d" % divmod(total - pos, 60) + " / " + "%02d:%02d" % divmod(total, 60)
If you change that to:
Code:

position = "%02d:%02d" % divmod(pos, 60) + " / " + "%02d:%02d" % divmod(total, 60)
I think that will display the current position (count up) instead of time left.

Addison 2011-07-21 13:35

Re: [application] pyRadio (Pandora)
 
Yesssh! :D

Thank you!

rm_you 2011-07-22 17:31

Re: [application] pyRadio (Pandora)
 
Any chance your plans include building a deb for Harmattan any time soon? :)

fatalsaint 2011-07-23 03:11

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by rm_you (Post 1056317)
Any chance your plans include building a deb for Harmattan any time soon? :)

The current one should work fine unless the dependency names have changed. Last I looked at Harmattan PyQt4 wasn't ported yet - that's the hangup there. I haven't checked MeeGo/Harmattan in a long time though to see if that's been fixed.

Addison 2011-07-24 15:03

Re: [application] pyRadio (Pandora)
 
Hi Saint.

Would it be possible to symlink any of the python junk to my memory card to save on space?

If so, what would be the command line for this?

fatalsaint 2011-07-24 22:46

Re: [application] pyRadio (Pandora)
 
pyRadio itself is actually very small so you won't save much space.. you can move /opt/pyRadio anywhere you want then just symlink it to /opt/pyRadio if you want the desktop icon to work. Otherwise you can move it anywhere and create your own launcher to launch it from the new location. pyRadio doesn't care where it is.

But, you'll save less than 1MB that way. The real space hogger is the qt4 and python+qt4 bindings and I am sure you can go through and symlink those but I don't have the commands. There are a lot of bindings.

dpkg -L python-qt4-<something>

Will give you a list of all the files it contains, then you can move the directories somewhere and symlink them back.

danramos 2011-07-25 01:41

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by fatalsaint (Post 1057580)
pyRadio itself is actually very small so you won't save much space.. you can move /opt/pyRadio anywhere you want then just symlink it to /opt/pyRadio if you want the desktop icon to work. Otherwise you can move it anywhere and create your own launcher to launch it from the new location. pyRadio doesn't care where it is.

But, you'll save less than 1MB that way. The real space hogger is the qt4 and python+qt4 bindings and I am sure you can go through and symlink those but I don't have the commands. There are a lot of bindings.

dpkg -L python-qt4-<something>

Will give you a list of all the files it contains, then you can move the directories somewhere and symlink them back.

...Or, you could just move /opt to your SD card ( sudo mv /opt /media/mmc1/ ) and then symbolic link your opt to the original location ( ln -s /media/mmc1/opt /opt ). This will take care of EVERYTHING in opt, if you have the space on the SD card (use mmc1 for the external SD card or else replace mmc1 with mmc2 if you prefer using the internal SD card).

fatalsaint 2011-07-25 03:54

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by danramos (Post 1057619)
...Or, you could just move /opt to your SD card ( sudo mv /opt /media/mmc1/ ) and then symbolic link your opt to the original location ( ln -s /media/mmc1/opt /opt ). This will take care of EVERYTHING in opt, if you have the space on the SD card (use mmc1 for the external SD card or else replace mmc1 with mmc2 if you prefer using the internal SD card).

That's true.. I forgot that on the N8x0 the /opt is not actually a system or standard directory so you can do with it whatever you want.

I've heard this has issues on the N900 through because the SD cards aren't mounted in time for some system libraries that are in /opt .. I could be wrong on that though..

Addison 2011-07-25 21:12

Re: [application] pyRadio (Pandora)
 
I've got PyRadio, Nqaap, and Dial Central in /opt.

I'll move those over to my MMC but I was hoping to also move the bulk of Python/QT there as well.

I would need an exact command line for this though since I still have no clue what I'm doing in Xterm. :)

Again, so many thanks for Pyradio and for making it the loudest music player on my N800! :D

rm_you 2011-07-26 07:27

Re: [application] pyRadio (Pandora)
 
Ok, I did the port myself to Harmattan. Important notes:

Now using PySide instead of Qt4. Almost a completely clean swap of the includes is all that's required, with the exception of one of your parent constructor calls.

MAFW has changed, and I don't know how to fix it, so I wrote my own backend that uses Mplayer slave mode. It's less than ideal, but it'll work in the meantime (if you know how to fix MAFWBackend, PLEASE do, it'd probably work a lot better).

Mine is a bit buggy on first launch, but once it starts working, it keeps working (timing issue with mplayer backend, it does some strange blocking in a lot of places) so again, would really love to see MAFW work again. I tried porting the mafw libs from fremantle and they seem to install but using the MAFW backend causes pyRadio to segfault with those libs. The symbol names are the same so something else must be just incompatible. Harmattan uses libqmafw which appears to be a C++ lib so the structure is completely different and the symbols are annoyingly obscured, so I tried for about 5 minutes to get it to work with ctypes and then gave up.

My deb can be found here: http://sheeplauncher.net/debs/
Source should be with it. Use 3.6.1! BTW, this stuff is really hacked together quickly to work, don't look at it as the pinnacle of quality. :P
You'll need to install the mplayer deb there as well for this to work.


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

vBulletin® Version 3.8.8