I just wrote a python skript which removes all defect entries (which have no 
duration tag) from rhythmbox's database. Store the script to your home 
directory, close rhythmbox and open a terminal. Run the following commands:
chmod u+x repairRhythmDb.py
./repairRhythmDb.py
mv .local/share/rhythmbox/rhytmdb.xml ./backupRhythmDb.xml
mv repaired_rhythmdb.xml .local/share/rhythmbox/rhythmdb.xml

Restard rhythmbox. It will add all files which have been removed because of 
their missing duration. Hopefully all of them will appear with a correct length 
afterwards. If not just run the last three commands again (while rhythmbox is 
closed).
With the help of the script my database of about 10,000 audio files was fixed 
after two runs.

Interesting fact: while coding the script I deleted the rhythmdb.xml-
file an started rhythmbox to regenerate it. Suddenly only about 1% had a
missing length. Yesterday I ended up with 30% of the files with missing
duration. I can't remember any software change between yesterday and
today.

** Attachment added: "Skript which removes defect entries from rhythmbox 
database"
   
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/334082/+attachment/4113429/+files/repairRhythmDb.py

** Changed in: rhythmbox (Ubuntu)
       Status: Invalid => New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to rhythmbox in Ubuntu.
https://bugs.launchpad.net/bugs/334082

Title:
  Most mp3 files listed with "Unknown" length

Status in “rhythmbox” package in Ubuntu:
  New

Bug description:
  TESTCASE:
  1) Add files from comments #4 and #21 in the collection
  2) Search for these files (search terms: "Greensleeves" and "Beowulf")
  3) Check track length

  Result: track length is 'Undefined'
  Expected Result: track lengths are 0:49 and 0:56

  --- Original Report ---
  Binary package hint: rhythmbox

  After scanning my music folder with rhythmbox, about half of the mp3
  tracks in the library are listed as having a length and bitrate of
  "Unknown". The files play without any problem, but while they are
  playing, the slider does not move.

  I've played and indexed these same files in Songbird, WinAmp, iTunes,
  VLC and WMP, none of which had any related issues, so this is more
  likely to be a rhythmbox bug than file corruption.

  1.) OS release: Ubuntu 8.10
  2.) rhythmbox version: 0.11.6svn20081008-0ubuntu4.3
  3.) Playable, uncorrupted MP3 files should be displayed with their correct 
length
  4.) A large portion (about half) of MP3 files do not have a length listed.

  If needed, I can provide a small, self-made MP3 file that exhibits
  this problem.

  ProblemType: Bug
  Architecture: i386DistroRelease: Ubuntu 8.10
  ExecutablePath: /usr/bin/rhythmbox
  Package: rhythmbox 0.11.6svn20081008-0ubuntu4.3
  ProcEnviron:
   PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
   LANG=en_US.UTF-8
   SHELL=/bin/bashSourcePackage: rhythmbox
  Uname: Linux 2.6.27-11-generic i686

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rhythmbox/+bug/334082/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to