Created
January 29, 2012 20:35
-
-
Save gazpachoking/1700518 to your computer and use it in GitHub Desktop.
no ignore_case_property on series name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: flexget/plugins/cli/series.py | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- flexget/plugins/cli/series.py (revision 2688) | |
+++ flexget/plugins/cli/series.py (revision ) | |
@@ -40,7 +40,7 @@ | |
session = Session() | |
name = unicode(self.options['name'].lower()) | |
- series = session.query(Series).filter(Series.name == name).first() | |
+ series = session.query(Series).filter(Series.name_nocase == name).first() | |
if not series: | |
print 'Unknown series `%s`' % name | |
return | |
Index: flexget/plugins/filter/series.py | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- flexget/plugins/filter/series.py (revision 2689) | |
+++ flexget/plugins/filter/series.py (revision ) | |
@@ -106,8 +106,8 @@ | |
__tablename__ = 'series' | |
id = Column(Integer, primary_key=True) | |
- _name = Column('name', Unicode, index=True) | |
- name = ignore_case_property('_name') | |
+ name = Column(Unicode, index=True) | |
+ name_nocase = ignore_case_property('name') | |
identified_by = Column(String) | |
episodes = relation('Episode', backref='series', cascade='all, delete, delete-orphan') | |
@@ -610,7 +610,7 @@ | |
# yaml loads ascii only as str | |
series_name = unicode(series_name) | |
# Update database with capitalization from config | |
- feed.session.query(Series).filter(Series.name == series_name).\ | |
+ feed.session.query(Series).filter(Series.name_nocase == series_name).\ | |
update({'name': series_name}, 'fetch') | |
source = guessed_series if series_config.get('series_guessed') else found_series | |
# If we didn't find any episodes for this series, continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment