http://bugs.gpodder.org/show_bug.cgi?id=347

           Summary: Version conversion routine cannot handle duplicate
                    names RSS feeds
           Product: gPodder
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: high
         Component: Application
        AssignedTo: [email protected]
        ReportedBy: [email protected]


My gpodder is currently DOA.

I did a 'git pull' tonight to sync to the latest version.  My last 'git pull'
was about 3-4 weeks ago.

The pull was successful.  I then did a 'make test'.  It appears that since I
have two different podcasts with the same name, a database integrity error now
occurs and gpodder does not launch.

Here's the tail end of the output:

[   0.695] (podcastChannel) Found pre-0.15.0 download folder for Your Money
with Chuck Jaffe: 9fb869f069aa97bcaff65f5594cd0ad2
[   0.696] (podcastChannel) Renaming
/home/abennett/gpodder-downloads/9fb869f069aa97bcaff65f5594cd0ad2 =>
/home/abennett/gpodder-downloads/Your Money with Chuck Jaffe
[   0.696] (podcastChannel) Updating foldername of
http://feeds.marketwatch.com/marketwatch/podcasts/yourmoneywithchuckjaffe to
"Your Money with Chuck Jaffe".
[   0.700] (podcastChannel) Found pre-0.15.0 download folder for Your Money
with Chuck Jaffe: 8204fa711d56a023b1f446fcc873c4ce
[   0.700] (podcastChannel) Moving files from
/home/abennett/gpodder-downloads/8204fa711d56a023b1f446fcc873c4ce to
/home/abennett/gpodder-downloads/Your Money with Chuck Jaffe
[   0.724] (podcastChannel) Removing
/home/abennett/gpodder-downloads/8204fa711d56a023b1f446fcc873c4ce
[   0.724] (podcastChannel) Updating foldername of
http://feedproxy.google.com/marketwatch/podcasts/yourmoneywithchuckjaffe to
"Your Money with Chuck Jaffe".
Traceback (most recent call last):
  File "bin/gpodder", line 171, in <module>
    sys.exit( main())
  File "bin/gpodder", line 167, in main
    gui.main()
  File "/home/abennett/gpodder/src/gpodder/gui.py", line 4554, in main
    gPodder().run()
  File "/home/abennett/gpodder/src/gpodder/gui.py", line 136, in __init__
    SimpleGladeApp.SimpleGladeApp.__init__( self, path, root, domain, **kwargs)
  File "/home/abennett/gpodder/src/gpodder/SimpleGladeApp.py", line 110, in
__init__
    self.new()
  File "/home/abennett/gpodder/src/gpodder/gui.py", line 690, in new
    self.update_feed_cache(force_update=gl.config.update_on_startup)
  File "/home/abennett/gpodder/src/gpodder/gui.py", line 1853, in
update_feed_cache
    self.updateComboBox()
  File "/home/abennett/gpodder/src/gpodder/gui.py", line 1546, in
updateComboBox
    gl.config.podcast_list_icon_size)
  File "/home/abennett/gpodder/src/gpodder/libpodcasts.py", line 982, in
channels_to_model
    color_dict, cover_cache, max_width, max_height, True)
  File "/home/abennett/gpodder/src/gpodder/libpodcasts.py", line 969, in
update_channel_model_by_iter
    pixbuf = services.cover_downloader.get_cover(channel,
avoid_downloading=True)
  File "/home/abennett/gpodder/src/gpodder/services.py", line 204, in get_cover
    (url, pixbuf) = self.__get_cover(channel, custom_url, False,
avoid_downloading)
  File "/home/abennett/gpodder/src/gpodder/services.py", line 226, in
__get_cover
    if not async and avoid_downloading and not
os.path.exists(channel.cover_file):
  File "/home/abennett/gpodder/src/gpodder/libpodcasts.py", line 524, in
get_cover_file
    return os.path.join( self.save_dir, 'cover')
  File "/home/abennett/gpodder/src/gpodder/libpodcasts.py", line 501, in
get_save_dir
    self.save()
  File "/home/abennett/gpodder/src/gpodder/libpodcasts.py", line 224, in save
    db.save_channel(self)
  File "/home/abennett/gpodder/src/gpodder/dbsqlite.py", line 354, in
save_channel
    cur.execute("UPDATE channels SET url = ?, title = ?, override_title = ?,
link = ?, description = ?, image = ?, pubDate = ?, sync_to_devices = ?,
device_playlist_name = ?, username = ?, password = ?, last_modified = ?, etag =
?, channel_is_locked = ?, foldername = ?, auto_foldername = ?, deleted = 0
WHERE id = ?", (c.url, c.title, c.override_title, c.link, c.description,
c.image, self.__mktime__(c.pubDate), c.sync_to_devices, c.device_playlist_name,
c.username, c.password, c.last_modified, c.etag, c.channel_is_locked,
c.foldername, c.auto_foldername, c.id, ))
sqlite3.IntegrityError: column foldername is not unique
[   3.582] start reader
[   3.694] (UserAppsReader) Player found:
/usr/share/applications/rhythmbox.desktop
[   3.697] (UserAppsReader) Player found: /usr/share/applications/totem.desktop
[   3.787] end reader (benchmark: 0.2047 seconds)
make: *** [test] Error 1
abenn...@e6400:~/gpodder$ 

A quick fix/hack or a way to undo my recent 'git pull' would be appreciated.

Thanks!

-- 
Configure bugmail: http://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to