![]() |
2010-05-14
, 18:04
|
Posts: 105 |
Thanked: 26 times |
Joined on May 2010
|
#22
|
![]() |
2010-05-15
, 00:54
|
Posts: 296 |
Thanked: 10 times |
Joined on May 2010
|
#23
|
Hmm, is it just me or I just couldn't get Easyplayer working at all on the N900. Starts the newest copy from extras-devel, it crashes back into desktop almost immediately.
Being the only resource light player out there, it's a bit sad that I can't run it. Conflict with other stuff I have (or don't) perhaps. Biggest suspect should be MSCIM and Titan's kernel, as it changes the system the most.
![]() |
2010-05-15
, 04:31
|
Posts: 6 |
Thanked: 0 times |
Joined on Feb 2010
@ Pennsylvania
|
#24
|
Hmm, is it just me or I just couldn't get Easyplayer working at all on the N900. Starts the newest copy from extras-devel, it crashes back into desktop almost immediately.
Being the only resource light player out there, it's a bit sad that I can't run it. Conflict with other stuff I have (or don't) perhaps. Biggest suspect should be MSCIM and Titan's kernel, as it changes the system the most.
![]() |
2010-05-15
, 05:42
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#25
|
--- EasyPlayer.py 2010-05-15 01:46:27.000000000 -0500 +++ EasyPlayer.py.new 2010-05-15 01:46:07.000000000 -0500 @@ -83,18 +83,24 @@ # Where to look for audio files / books self.base_media_dir = "/home/user/MyDocs/" - self.prefs_file = "/home/user/MyDocs/.easyplayer/preferences" - self.pl_dirs_file = "/home/user/MyDocs/.easyplayer/playlistdirs" - self.pl_files_file = "/home/user/MyDocs/.easyplayer/playlistfiles" + home = os.environ["HOME"] # some people change their user name from "user" + self.prefs_file = os.path.join(home, ".easyplayer", "preferences") + self.pl_dirs_file = os.path.join(home, ".easyplayer", "playlistdirs") + self.pl_files_file = os.path.join(home, ".easyplayer", "playlistfiles") # Try to load the preferences - if os.path.isfile(self.prefs_file): - try: - fd = open(self.prefs_file) - self.prefs = pickle.load(fd) # overwrite default values - fd.close() - except: - if (dbg): print "Can't load preferences" + try: + # doing everything in one function call means we don't have to close + # the file + self.prefs = pickle.load(open(self.prefs_file)) + except IOError: + self.init_prefs() + self.save_prefs() + try: + os.mkdir(os.path.join(home, ".easyplayer")) + except OSError: + pass + self.act_file_id = self.prefs["lastfile"] # Look, if the preferences are new enough @@ -126,13 +132,11 @@ # Try to load the playlist try: if (dbg): print "Trying to load dirs..." - fd = open(self.pl_dirs_file) # Load list containing directories - self.pl_dirs = pickle.load(fd) # overwrite default values - fd.close() + # Load list containing directories + self.pl_dirs = pickle.load(open(self.pl_dirs_file)) if (dbg): print "Trying to load files..." - fd = open(self.pl_files_file) # Load list containng filenames - self.pl_files = pickle.load(fd) # overwrite default values - fd.close() + # Load list containing filenames + self.pl_files = pickle.load(open(self.pl_files_file)) self.max_files = len(self.pl_files) if (dbg): print "(load) Max Files:",self.max_files except:
The Following User Says Thank You to aspidites For This Useful Post: | ||
![]() |
2010-05-26
, 18:37
|
|
Posts: 61 |
Thanked: 13 times |
Joined on Mar 2010
|
#26
|
![]() |
2010-08-13
, 23:41
|
Posts: 28 |
Thanked: 28 times |
Joined on Jul 2009
|
#27
|
Hmm, is it just me or I just couldn't get Easyplayer working at all on the N900. Starts the newest copy from extras-devel, it crashes back into desktop almost immediately.
Being the only resource light player out there, it's a bit sad that I can't run it. Conflict with other stuff I have (or don't) perhaps. Biggest suspect should be MSCIM and Titan's kernel, as it changes the system the most.
![]() |
2010-08-13
, 23:42
|
Posts: 28 |
Thanked: 28 times |
Joined on Jul 2009
|
#28
|
![]() |
2010-11-17
, 02:59
|
Posts: 343 |
Thanked: 165 times |
Joined on Sep 2010
|
#29
|
![]() |
2011-02-27
, 02:22
|
|
Posts: 1,107 |
Thanked: 720 times |
Joined on Mar 2007
@ Germany
|
#30
|
I would like to see some dbus interaction in easyplayer. Most notably to react on pause signals (from navigation software or headphone deamon). Have been looking around a bit but documentation seems scarce. Could you add this?