Remove sync_to_devices from podcast channel
This commit is contained in:
parent
f9eeabdc62
commit
3e59385337
|
@ -187,41 +187,6 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">5</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label95">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>Synchronization</b></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="width_chars">-1</property>
|
||||
<property name="single_line_mode">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="cbNoSync">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Skip this podcast when syncing to my device</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<property name="active">False</property>
|
||||
<property name="inconsistent">False</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label96">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
@ -65,7 +65,6 @@ class Database(object):
|
|||
('description', 'TEXT', False, None), # Description of podcast contents
|
||||
('image', 'TEXT', False, None), # URL to cover art for the image
|
||||
('pubDate', 'INTEGER', True, '0'), # Date and time of last feed publication
|
||||
('sync_to_devices', 'INTEGER', True, '1'), # 1 if syncing to devices is enabled, 0 otherwise
|
||||
('username', 'TEXT', True, "''"), # Username for HTTP authentication (feed update + downloads)
|
||||
('password', 'TEXT', True, "''"), # Password for HTTP authentication (feed update + downloads)
|
||||
('last_modified', 'TEXT', False, None), # Last-modified HTTP header from last update
|
||||
|
@ -79,7 +78,6 @@ class Database(object):
|
|||
INDEX_CHANNELS = (
|
||||
('foldername', 'UNIQUE INDEX'),
|
||||
('url', 'UNIQUE INDEX'),
|
||||
('sync_to_devices', 'INDEX'),
|
||||
('title', 'INDEX'),
|
||||
)
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ class gPodderChannel(BuilderWidget):
|
|||
self.LabelDownloadTo.set_text( self.channel.save_dir)
|
||||
self.LabelWebsite.set_text( self.channel.link)
|
||||
|
||||
self.cbNoSync.set_active( not self.channel.sync_to_devices)
|
||||
if self.channel.username:
|
||||
self.FeedUsername.set_text( self.channel.username)
|
||||
if self.channel.password:
|
||||
|
@ -102,7 +101,6 @@ class gPodderChannel(BuilderWidget):
|
|||
self.cover_downloader.unregister('cover-available', self.cover_download_finished)
|
||||
|
||||
def on_btnOK_clicked(self, widget, *args):
|
||||
self.channel.sync_to_devices = not self.cbNoSync.get_active()
|
||||
self.channel.feed_update_enabled = not self.cbSkipFeedUpdate.get_active()
|
||||
self.channel.set_custom_title(self.entryTitle.get_text())
|
||||
self.channel.username = self.FeedUsername.get_text().strip()
|
||||
|
|
|
@ -369,8 +369,6 @@ class PodcastChannel(PodcastModelObject):
|
|||
self.foldername = None
|
||||
self.auto_foldername = 1 # automatically generated foldername
|
||||
|
||||
# should this channel be synced to devices? (ex: iPod)
|
||||
self.sync_to_devices = True
|
||||
# if set, this overrides the channel-provided title
|
||||
self.override_title = ''
|
||||
self.username = ''
|
||||
|
|
Loading…
Reference in New Issue