Active Topics

 



Notices


Reply
Thread Tools
Posts: 46 | Thanked: 17 times | Joined on Mar 2010 @ Netherlands
#21
Hi Klaus,

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?
 
Posts: 105 | Thanked: 26 times | Joined on May 2010
#22
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.
 
Posts: 296 | Thanked: 10 times | Joined on May 2010
#23
Originally Posted by eiraku View Post
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.
same is happening here, any solutions?
 
Posts: 6 | Thanked: 0 times | Joined on Feb 2010 @ Pennsylvania
#24
Originally Posted by eiraku View Post
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.
Yeah same here... Damn Well awaiting some info on this.
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#25
Writing a patch right now. The problem is that the config file doesn't work. In theory, creating the file /home/user/MyDocs/.easyplayer/preferences should fix it.

Will post back with more permanent solution unless OP does.

Attached a patch that corrects the following:
  • the home directory is no longer hard coded: this means that easy player is no longer broken for anyone who has changed the default user name, or runs as another user (for whatever reason you might do that)
  • default config is now created if the config file doesn't exist (this was sort of already their, but I connected the broken dots)
patch (also attached):
Code:
--- 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:
Attached Files
File Type: gz prefs_fix.tar.gz (873 Bytes, 100 views)
__________________
aspidites | blog | aspidites@inbox.com

Last edited by aspidites; 2010-05-15 at 06:50.
 

The Following User Says Thank You to aspidites For This Useful Post:
lubabula's Avatar
Posts: 61 | Thanked: 13 times | Joined on Mar 2010
#26
Excellent player. This is what I use. Any change to make it read memory card when scanning files? I keep my audiobooks there so now I have to move what i want to listen to n900.

Thanks.
 
Posts: 28 | Thanked: 28 times | Joined on Jul 2009
#27
Originally Posted by eiraku View Post
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.
This bug should be fixed in version 0.5-2. Please test! If you discover bugs, please contact me directly via email!

-Klaus
__________________
Software for handhelds: http://www.rotters.de and https://garage.maemo.org. Developer of EasyPlayer
 
Posts: 28 | Thanked: 28 times | Joined on Jul 2009
#28
This patch is added in version 0.5-2. Please test!

-Klaus
__________________
Software for handhelds: http://www.rotters.de and https://garage.maemo.org. Developer of EasyPlayer
 
Posts: 343 | Thanked: 165 times | Joined on Sep 2010
#29
This is the greatest media player available for the N900, hands down, then up, then hands down again. What the hell, hands up one more time. My only complaint is a 10% CPU increase when compared to the default player, but python's quicker than Hildon/GTK, so it's worth it.
 
ArnimS's Avatar
Posts: 1,107 | Thanked: 720 times | Joined on Mar 2007 @ Germany
#30
This gui is absolutely great - makes browsing through my media breezy! And i love how it continues with the next track automatically. This is my new audio player. THANKS!

This still annoys that PA takes so much cpu. If you don't mind, i'll use this frontend for my expermintal low-cpu player. ty

%25.6 /usr/bin/pulseaudio --system --high-priority
%16.2 python /opt/easyplayer/EasyPlayer.py
__________________
find . -name \*.mp3 -exec mplayer -quiet -shuffle "{}" +
das ist your media player, and yuu vill like it
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:29.