mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix: get_torrent_tags fails to properly retrieve the existing tags
This commit is contained in:
Regular → Executable
+3
-2
@@ -163,8 +163,9 @@ class Transmission:
|
|||||||
if not self.trc:
|
if not self.trc:
|
||||||
return []
|
return []
|
||||||
try:
|
try:
|
||||||
torrent = self.trc.get_torrents(ids=ids, arguments=self._trarg)
|
torrents = self.trc.get_torrents(ids=ids, arguments=self._trarg)
|
||||||
if torrent:
|
if len(torrents):
|
||||||
|
torrent = torrents[0]
|
||||||
labels = [str(tag).strip()
|
labels = [str(tag).strip()
|
||||||
for tag in torrent.labels] if hasattr(torrent, "labels") else []
|
for tag in torrent.labels] if hasattr(torrent, "labels") else []
|
||||||
return labels
|
return labels
|
||||||
|
|||||||
Reference in New Issue
Block a user