Ticket #2215 (new defect)

Opened 4 months ago

Last modified 2 months ago

dot directories stall tivo mp3 player

Reported by: haroldp@internal.org Assigned to: somebody
Priority: major Component: Music Plugin
Keywords: Cc:

Description

I have a series 2 tivo, and I am using a recent krkeegan snapshot to play MP3s.

I have my music folder set up as an "AppleTalk? volume" using Netatalk, so I can access it from my Macs. As a result there a bunch of ".AppleDouble?" dot directories.

The commit messages suggest that pyTivo knows not to show these, but I'm still seeing them. Worse, recently the Tivo will refuse to play any more MP3s until I restart it, after it tries to play files in these directories.

Attachments

Change History

(follow-up: ↓ 2 ) 05/02/08 17:49:39 changed by KRKeegan

Unfortunately the commit you see only affected the video plugin.

(in reply to: ↑ 1 ) 05/02/08 18:54:40 changed by haroldp@internal.org

I don't really code Python, but could this be as simple as this:

% diff -ruN music.py.old music.py
--- music.py.old        2008-03-28 23:29:59.000000000 -0700
+++ music.py    2008-05-02 16:35:03.000000000 -0700
@@ -391,6 +391,8 @@
             path = unicode(path, 'utf-8')
             try:
                 for f in os.listdir(path):
+                    if f.startswith('.'):
+                        continue
                     f = os.path.join(path, f)
                     isdir = os.path.isdir(f)
                     f = f.encode('utf-8')


That seems to be working for me so far.

06/19/08 01:32:40 changed by wmcbrine@gmail.com

Yes -- done now in my repo (also for photos) -- sorry for the delay.


Add/Change #2215 (dot directories stall tivo mp3 player)