~ubuntu-branches/ubuntu/feisty/banshee/feisty

« back to all changes in this revision

Viewing changes to src/Plugins/Banshee.Plugins.Podcast/PodcastDBManager.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers (RAOF)
  • Date: 2007-04-14 18:56:33 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070414185633-y9s1cgmltarks608
Tags: 0.12.1+dfsg-2ubuntu1
* Bugfix-only release, UVF exception approved on IRC by
  ajmitch and crimsun (LP: #106720),
* Merge from Debian unstable, remaining Ubuntu changes:
  - debian/patches/:
    + 03_fix_2.18_multimedia_keys: Rename from 02_... to
      accomodate new Debian patch,
    + 04_dont_append_commas_on_broken_id3v2,
  - debian/control:
    + Adhere to DebianMaintainerField,
    + Add libipodui-cil to dependencies until dh_clideps is
      updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
                    feed_reader.GetInt32 (0), feed_reader.GetString (1),
98
98
                    feed_reader.GetString (2), GetStringSafe (feed_reader, 3),
99
99
                    GetStringSafe (feed_reader, 4), GetStringSafe (feed_reader, 5),
100
 
                    feed_reader.GetDateTime (6), feed_reader.GetBoolean (7),
 
100
                    GetDateTimeSafe (feed_reader, 6), feed_reader.GetBoolean (7),
101
101
                    (SyncPreference)feed_reader.GetInt32(8)
102
102
                );
103
103
                
359
359
            return reader.IsDBNull (index) ? 
360
360
                String.Empty : reader.GetString (index);
361
361
        }
 
362
 
 
363
                private static DateTime GetDateTimeSafe(IDataReader reader, int index)
 
364
                {
 
365
                        try {
 
366
                                return reader.GetDateTime(index);
 
367
                        } catch {
 
368
                                return DateTime.MinValue;
 
369
                        }
 
370
                }
362
371
    }
363
372
}