move order warning after ep search
@@ -553,13 +553,13 @@ def from_number(self, season, number):
def from_id(self, provider, id):
# NB: the code assumes from_id is called only if from_number fails
- if self.same_order:
- logger.warning(f"'{self.tm.title}' {EPISODES_ORDERING_WARNING}")
- self.same_order = False
if provider not in self.provider_table:
self._reverse_lookup(provider)
try:
ep = self.provider_table[provider][id]
except KeyError:
return None
+ if self.same_order:
+ logger.warning(f"'{self.tm.title}' {EPISODES_ORDERING_WARNING}")
+ self.same_order = False
return ep
