← Back to team overview

touch-packages team mailing list archive

[Bug 1460411] Re: Entries for old file names are not removed from the index when renaming directories

 

** Changed in: mediascanner2 (Ubuntu)
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mediascanner2 in Ubuntu.
https://bugs.launchpad.net/bugs/1460411

Title:
  Entries for old file names are not removed from the index when
  renaming directories

Status in mediascanner2 package in Ubuntu:
  In Progress

Bug description:
  current build number: 144
  device name: mako
  channel: ubuntu-touch/rc-proposed/ubuntu
  last update: 2015-05-29 12:55:27
  version version: 144
  version ubuntu: 20150528.1
  version device: 20150210
  version custom: 20150528.1

  Reproduce:
  1. Add media, in this case /home/phablet/Music/CD1
  2. Rename media to /home/phablet/Music/Chopin - Noctures 1/

  What happens:
  Media scanner lists both media

  What should have happened:
  Media scanner should only show /home/phablet/Music/Chopin - Noctures 1/

  phablet@ubuntu-phablet:~$ sqlite3 .cache/mediascanner-2.0/mediastore.db
  sqlite> select * from media;
  …
  /home/phablet/Music/CD1/01 Field - Nocturne No1 In E Flat, H 24.flac|audio/flac|1433003465:144381|01 Field - Nocturne No1 In E Flat, H 24||||||0|0|235|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/02 Field - Nocturne No2 In C Minor, H 25.flac|audio/flac|1433003466:305621|02 Field - Nocturne No2 In C Minor, H 25||||||0|0|216|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/03 Field - Nocturne No3 In A Flat, H 26.flac|audio/flac|1433003470:930556|03 Field - Nocturne No3 In A Flat, H 26||||||0|0|252|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/04 Field - Nocturne No4 In A, H 36.flac|audio/flac|1433003474:374230|04 Field - Nocturne No4 In A, H 36||||||0|0|353|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/10 Field - Nocturne No10 In E Minor, H 46.flac|audio/flac|1433003474:854743|10 Field - Nocturne No10 In E Minor, H 46||||||0|0|160|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/11 Field - Nocturne No11 In E Flat, H 56.flac|audio/flac|1433003478:528663|11 Field - Nocturne No11 In E Flat, H 56||||||0|0|313|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/05 Field - Nocturne No5 In B Flat, H 37.flac|audio/flac|1433003482:993428|05 Field - Nocturne No5 In B Flat, H 37||||||0|0|198|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/06 Field - Nocturne No6 In F, H 40.flac|audio/flac|1433003485:636248|06 Field - Nocturne No6 In F, H 40||||||0|0|281|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/12 Field - Nocturne No12 In G, H 58.flac|audio/flac|1433003487:828587|12 Field - Nocturne No12 In G, H 58||||||0|0|143|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/13 Field - Nocturne No13 In D Minor, H 59, 'Derniere Pensee'.flac|audio/flac|1433003489:570446|13 Field - Nocturne No13 In D Minor, H 59, 'Derniere Pensee'||||||0|0|181|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/09 Field - Nocturne No9 In E Flat, H 39.flac|audio/flac|1433003493:164281|09 Field - Nocturne No9 In E Flat, H 39||||||0|0|216|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/07 Field - Nocturne No7 In C, H 45.flac|audio/flac|1433003495:807101|07 Field - Nocturne No7 In C, H 45||||||0|0|301|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/14 Field - Nocturne No14 In C, H 60.flac|audio/flac|1433003497:599013|14 Field - Nocturne No14 In C, H 60||||||0|0|276|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/15 Field - Nocturne No15 In C, H 61.flac|audio/flac|1433003499:551096|15 Field - Nocturne No15 In C, H 61||||||0|0|593|0|0|0.0|0.0|0|1
  /home/phablet/Music/CD1/08 Field - Nocturne No8 In A, H 14.flac|audio/flac|1433003501:953660|08 Field - Nocturne No8 In A, H 14||||||0|0|265|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/01 Field - Nocturne No1 In E Flat, H 24.flac|audio/flac|1433003465:144381|01 Field - Nocturne No1 In E Flat, H 24||||||0|0|235|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/02 Field - Nocturne No2 In C Minor, H 25.flac|audio/flac|1433003466:305621|02 Field - Nocturne No2 In C Minor, H 25||||||0|0|216|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/03 Field - Nocturne No3 In A Flat, H 26.flac|audio/flac|1433003470:930556|03 Field - Nocturne No3 In A Flat, H 26||||||0|0|252|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/04 Field - Nocturne No4 In A, H 36.flac|audio/flac|1433003474:374230|04 Field - Nocturne No4 In A, H 36||||||0|0|353|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/10 Field - Nocturne No10 In E Minor, H 46.flac|audio/flac|1433003474:854743|10 Field - Nocturne No10 In E Minor, H 46||||||0|0|160|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/11 Field - Nocturne No11 In E Flat, H 56.flac|audio/flac|1433003478:528663|11 Field - Nocturne No11 In E Flat, H 56||||||0|0|313|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/05 Field - Nocturne No5 In B Flat, H 37.flac|audio/flac|1433003482:993428|05 Field - Nocturne No5 In B Flat, H 37||||||0|0|198|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/06 Field - Nocturne No6 In F, H 40.flac|audio/flac|1433003485:636248|06 Field - Nocturne No6 In F, H 40||||||0|0|281|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/12 Field - Nocturne No12 In G, H 58.flac|audio/flac|1433003487:828587|12 Field - Nocturne No12 In G, H 58||||||0|0|143|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/13 Field - Nocturne No13 In D Minor, H 59, 'Derniere Pensee'.flac|audio/flac|1433003489:570446|13 Field - Nocturne No13 In D Minor, H 59, 'Derniere Pensee'||||||0|0|181|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/09 Field - Nocturne No9 In E Flat, H 39.flac|audio/flac|1433003493:164281|09 Field - Nocturne No9 In E Flat, H 39||||||0|0|216|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/07 Field - Nocturne No7 In C, H 45.flac|audio/flac|1433003495:807101|07 Field - Nocturne No7 In C, H 45||||||0|0|301|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/14 Field - Nocturne No14 In C, H 60.flac|audio/flac|1433003497:599013|14 Field - Nocturne No14 In C, H 60||||||0|0|276|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/15 Field - Nocturne No15 In C, H 61.flac|audio/flac|1433003499:551096|15 Field - Nocturne No15 In C, H 61||||||0|0|593|0|0|0.0|0.0|0|1
  /home/phablet/Music/Chopin - Noctures 1/08 Field - Nocturne No8 In A, H 14.flac|audio/flac|1433003501:953660|08 Field - Nocturne No8 In A, H 14||||||0|0|265|0|0|0.0|0.0|0|1
  …

  phablet@ubuntu-phablet:~$ ls -la Music/
  drwxr-xr-x 10 phablet phablet 4096 May 30 20:07 .
  drwxr-xr-x 12 phablet phablet 4096 May 31 13:23 ..
  -rw-rw-r--  1 phablet phablet    0 May 30 20:07 10,000 Days
  drwxr-xr-x  2 phablet phablet 4096 May 30 18:29 Bonnie "Prince" Billy - I See A Darkness
  drwxr-xr-x  2 phablet phablet 4096 May 30 20:06 Chopin - Noctures 1
  drwxr-xr-x  2 phablet phablet 4096 May 30 20:06 LateNightTales AIR
  drwxr-xr-x  2 phablet phablet 4096 May 30 18:29 The Avalanches - Since I Left You
  drwxr-xr-x  2 phablet phablet 4096 May 30 18:30 The Beatles - Abbey Road
  drwxr-xr-x  2 phablet phablet 4096 May 30 18:30 The Beatles - LOVE
  drwxr-xr-x  2 phablet phablet 4096 May 30 20:07 The Cinematic Orchestra - LateNightTales
  drwxr-xr-x  8 phablet phablet 4096 May 30 18:32 Tool

  From the log:
  New file was created: /home/phablet/Music/CD1/fingerprint.ffp.txt.
  Error when adding new file: File /home/phablet/Music/CD1/fingerprint.ffp.txt is not audio or video
  New file was created: /home/phablet/Music/CD1/log.txt.
  Error when adding new file: File /home/phablet/Music/CD1/log.txt is not audio or video
  New file was created: /home/phablet/Music/CD1/md5sum.md5.
  Error when adding new file: File /home/phablet/Music/CD1/md5sum.md5 is not audio or video
  Subdirectory was deleted: /home/phablet/Music/CD1.
  Stopped watching /home/phablet/Music/CD1, 14 directories remain.
  New directory was created: /home/phablet/Music/Chopin - Noctures 1.
  Watching subdirectory /home/phablet/Music/Chopin - Noctures 1, 15 watches in total.
  New file was created: /home/phablet/Music/Chopin - Noctures 1/01 Field - Nocturne No1 I
  …

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