mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-18 08:43:37 +00:00
Merge branch 'hotfix/3.27.11'
This commit is contained in:
commit
93af172f2e
2 changed files with 14 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
|||
### 3.27.10 (2023-03-05 00:20:00 UTC)
|
||||
### 3.27.11 (2023-03-06 23:40:00 UTC)
|
||||
|
||||
* Fix "Change File Date" not using timestamp of episode if available
|
||||
|
||||
|
||||
### 3.27.10 (2023-03-05 00:20:00 UTC)
|
||||
|
||||
* Add UHD Bluray
|
||||
* Change an error text for Cheetah module availability
|
||||
|
|
|
@ -5276,14 +5276,20 @@ class TVEpisode(TVEpisodeBase):
|
|||
Note: Also called from postProcessor
|
||||
|
||||
"""
|
||||
has_timestamp = isinstance(self._timestamp, int) and 1 < self._timestamp
|
||||
has_timestamp = isinstance(self._timestamp, int) and 0 != self._timestamp
|
||||
if not has_timestamp and (not isinstance(self._airdate, datetime.date) or 1 == self._airdate.year):
|
||||
logger.log('%s: Did not change modify date of %s because episode date is never aired or invalid'
|
||||
% (self._show_obj.tvid_prodid, ek.ek(os.path.basename, self.location)), logger.DEBUG)
|
||||
return
|
||||
|
||||
aired_dt = None
|
||||
if not has_timestamp:
|
||||
if has_timestamp:
|
||||
try:
|
||||
aired_dt = SGDatetime.from_timestamp(self._timestamp)
|
||||
except (BaseException, Exception):
|
||||
aired_dt = None
|
||||
|
||||
if not aired_dt:
|
||||
if isinstance(self._airtime, datetime.time):
|
||||
airtime = self._airtime
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue