mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-10 11:40:24 +08:00
Fix adastra changed date format. Plugin-Fix updatemeta checkbox.
This commit is contained in:
@@ -152,7 +152,7 @@ class AddNewDialog(SizePersistedDialog):
|
||||
return {
|
||||
'fileform': unicode(self.fileform.currentText()),
|
||||
'collision': unicode(self.collision.currentText()),
|
||||
'updatemeta': unicode(self.updatemeta.isChecked()),
|
||||
'updatemeta': self.updatemeta.isChecked(),
|
||||
}
|
||||
|
||||
def get_urlstext(self):
|
||||
@@ -417,7 +417,7 @@ class UpdateExistingDialog(SizePersistedDialog):
|
||||
return {
|
||||
'fileform': unicode(self.fileform.currentText()),
|
||||
'collision': unicode(self.collision.currentText()),
|
||||
'updatemeta': unicode(self.updatemeta.isChecked()),
|
||||
'updatemeta': self.updatemeta.isChecked(),
|
||||
}
|
||||
|
||||
def display_story_list(gui, header, prefs, icon, books,
|
||||
|
||||
@@ -174,12 +174,12 @@ class AdAstraFanficComSiteAdapter(BaseSiteAdapter):
|
||||
self.story.setMetadata('status', 'In-Progress')
|
||||
|
||||
if 'Published' in label:
|
||||
self.story.setMetadata('datePublished', makeDate(value.strip(), "%m/%d/%Y"))
|
||||
self.story.setMetadata('datePublished', makeDate(value.strip(), "%d %b %Y"))
|
||||
|
||||
if 'Updated' in label:
|
||||
# there's a stray [ at the end.
|
||||
#value = value[0:-1]
|
||||
self.story.setMetadata('dateUpdated', makeDate(value.strip(), "%m/%d/%Y"))
|
||||
self.story.setMetadata('dateUpdated', makeDate(value.strip(), "%d %b %Y"))
|
||||
|
||||
|
||||
def getChapterText(self, url):
|
||||
|
||||
Reference in New Issue
Block a user