Skip to content

Commit

Permalink
Don't save removed episode location as dot (#9284)
Browse files Browse the repository at this point in the history
* Don't save removed episode location as dot

* Update changelog
  • Loading branch information
medariox authored Mar 1, 2021
1 parent aeeff41 commit c00fb6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#### Improvements

#### Fixes
- Don't save removed episode location as dot ([9284](https://github.com/pymedusa/Medusa/pull/9284))

-----

Expand Down
2 changes: 2 additions & 0 deletions medusa/tv/episode.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ def location(self, value):
if value and self.is_location_valid(new_location):
self.file_size = os.path.getsize(new_location)
else:
self._location = ''
self.file_size = 0
return

if new_location == old_location:
return
Expand Down

0 comments on commit c00fb6f

Please sign in to comment.