Skip to content

Transmission plugin - BUG: Unhandled error in plugin transmission: 'Torrent' object has no attribute 'totalSize' #3699

@bone-idol-rob

Description

@bone-idol-rob

Expected behaviour:

Loading of found magnet link to transmission server

Actual behaviour:

Flexget executes find torrents and then pushes to transmission servers, the first magnet link that gets pushed loads on the server but the flexget run crashes with error BUG: Unhandled error in plugin transmission: 'Torrent' object has no attribute 'totalSize'

Steps to reproduce:

  • Step 1: ...
  • execute task

Config:

accept_all: true                                                                                                                                                                                                                                                                 
discover:                                                                                                                                                                                                                                                                        
  from:                                                                                                                                                                                                                                                                          
    - magnetdl:                                                                                                                                                                                                                                                                  
        category: tv                                                                                                                                                                                                                                                             
        pages: 1                                                                                                                                                                                                                                                                 
  interval: 15 minutes                                                                                                                                                                                                                                                           
  release_estimations: loose                                                                                                                                                                                                                                                     
  what:                                                                                                                                                                                                                                                                          
    - trakt_list:                                                                                                                                                                                                                                                                
        account: *****************                                                                                                                                                                                                                                      
        list: tv_list                                                                                                                                                                                                                                                            
        strip_dates: true                                                                                                                                                                                                                                                        
        type: shows                                                                                                                                                                                                                                                              
        username: **************                                                                                                                                                                                                                                                  
metainfo_series: true                                                                                                                                                                                                                                                            
no_entries_ok: true                                                                                                                                                                                                                                                              
quality: 1080p                                                                                                                                                                                                                                                                   
regexp:                                                                                                                                                                                                                                                                          
  reject:                                                                                                                                                                                                                                                                        
    - .*NTERNAL.*                                                                                                                                                                                                                                                                
    - .*REPACK.*                                                                                                                                                                                                                                                                 
    - .*PROPER.*                                                                                                                                                                                                                                                                 
    - .*ITA.*                                                                                                                                                                                                                                                                    
  reject_excluding:                                                                                                                                                                                                                                                              
    - .*S[0-9][0-9]E[0-9][0-9]\..*\.1080p\..*                                                                                                                                                                                                                                    
transmission:                                                                                                                                                                                                                                                                    
  host: 1.1.1.1                                                                                                                                                                                                                                                            
  magnetization_timeout: 30                                                                                                                                                                                                                                                      
  password: transmission                                                                                                                                                                                                                                                         
  path: /media/transmission/series/{{ series_name | replace(" ", ".") }}/season{{                                                                                                                                                                                                
    series_season }}                                                                                                                                                                                                                                                             
  port: 9091                                                                                                                                                                                                                                                                     
  ratio: 30                                                                                                                                                                                                                                                                      
  skip_files:                                                                                                                                                                                                                                                                    
    - .*.exe                                                                                                                                                                                                                                                                     
    - RARBG.txt                                                                                                                                                                                                                                                                  
  username: *************** 

Log:

(click to expand)
2023-02-25 21:34:09 VERBOSE  task          trakt_tv_to_transmission ACCEPTED: `The.Ark.S01E02.Like.It.Touched.the.Sun.1080p.AMZN.WEBRip.DDP5.1.x264-NTb [eztv]` by accept_all plugin
2023-02-25 21:34:09 VERBOSE  task          trakt_tv_to_transmission ACCEPTED: `The.Ark.S01E01.Everyone.Wanted.to.Be.on.This.Ship.1080p.AMZN.WEBRip.DDP5.1.x264-NTb [eztv]` by accept_all plugin
2023-02-25 21:34:09 VERBOSE  details       trakt_tv_to_transmission Summary - Accepted: 94 (Rejected: 702 Undecided: 0 Failed: 0)
2023-02-25 21:34:09 VERBOSE  task          trakt_tv_to_transmission REJECTED: `La.Brea.S02E12.The.Swarm.1080p.AMZN.WEBRip.DDP5.1.x264-NTb [TGx]` by seen_info_hash plugin because already accepted torrent with this infohash once for this task
2023-02-25 21:34:09 VERBOSE  task          trakt_tv_to_transmission REJECTED: `La.Brea.S02E12.The.Swarm.1080p.AMZN.WEBRip.DDP5.1.x264-NTb [eztv]` by seen_info_hash plugin because already accepted torrent with this infohash once for this task
2023-02-25 21:34:12 VERBOSE  transmission  trakt_tv_to_transmission Moving Godfather.of.Harlem.S03E05.Angel.of.Death.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv.re].mkv to "/media/transmission/series/Godfather.Of.Harlem/season3"
2023-02-25 21:34:15 CRITICAL task          trakt_tv_to_transmission BUG: Unhandled error in plugin transmission: 'Torrent' object has no attribute 'totalSize'
Traceback (most recent call last):

  File "/usr/lib/python3.9/threading.py", line 912, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x7f8b5c3430>
    └ <Thread(task_queue, started daemon 547707974112)>
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
    │    └ <function Thread.run at 0x7f8b5c3160>
    └ <Thread(task_queue, started daemon 547707974112)>
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
    │    │        │    │        │    └ {}
    │    │        │    │        └ <Thread(task_queue, started daemon 547707974112)>
    │    │        │    └ ()
    │    │        └ <Thread(task_queue, started daemon 547707974112)>
    │    └ <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0x7f862d7370>>
    └ <Thread(task_queue, started daemon 547707974112)>
  File "/home/pi/flexget/lib/python3.9/site-packages/flexget/task_queue.py", line 47, in run
    self.current_task.execute()
    │    │            └ <function Task.execute at 0x7f88fc0f70>
    │    └ <flexget.task.Task object at 0x7f85fb5460>
    └ <flexget.task_queue.TaskQueue object at 0x7f862d7370>
  File "/home/pi/flexget/lib/python3.9/site-packages/flexget/task.py", line 87, in wrapper
    return func(self, *args, **kw)
           │    │      │       └ {}
           │    │      └ ()
           │    └ <flexget.task.Task object at 0x7f85fb5460>
           └ <function Task.execute at 0x7f88fc0ee0>
  File "/home/pi/flexget/lib/python3.9/site-packages/flexget/task.py", line 727, in execute
    self._execute()
    │    └ <function Task._execute at 0x7f88fc0e50>
    └ <flexget.task.Task object at 0x7f85fb5460>
  File "/home/pi/flexget/lib/python3.9/site-packages/flexget/task.py", line 696, in _execute
    self.__run_task_phase(phase)
    │                     └ 'output'
    └ <flexget.task.Task object at 0x7f85fb5460>
  File "/home/pi/flexget/lib/python3.9/site-packages/flexget/task.py", line 514, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
               │                 │       │      └ (<flexget.task.Task object at 0x7f85fb5460>, {'host': '1.1.1.1', 'port': 9091, 'username': '******', 'password': ...
               │                 │       └ 'output'
               │                 └ <PluginInfo(name=transmission)>
               └ <flexget.task.Task object at 0x7f85fb5460>
> File "/home/pi/flexget/lib/python3.9/site-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
             │       │       └ {}
             │       └ (<flexget.task.Task object at 0x7f85fb5460>, {'host': '1.1.1.1', 'port': 9091, 'username': '*********', 'password': ...
             └ <Event(name=plugin.transmission.output,func=on_task_output,priority=135)>
  File "/home/pi/flexget/lib/python3.9/site-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ (<flexget.task.Task object at 0x7f85fb5460>, {'host': '1.1.1.1', 'port': 9091, 'username': '*******', 'password': ...
           │    └ <bound method PluginTransmission.on_task_output of <flexget.plugins.clients.transmission.PluginTransmission object at 0x7f868...
           └ <Event(name=plugin.transmission.output,func=on_task_output,priority=135)>
  File "/home/pi/flexget/lib/python3.9/site-packages/flexget/plugins/clients/transmission.py", line 457, in on_task_output
    total_size = torrent_info.totalSize
                 └ <Torrent 2 "Godfather.of.Harlem.S03E05.Angel.of.Death.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv.re].mkv">

AttributeError: 'Torrent' object has no attribute 'totalSize'
2023-02-25 21:34:15 CRITICAL manager       trakt_tv_to_transmission An unexpected crash has occurred. Writing crash report to /home/pi/flexget/crash_report.2023.02.25.213415957195.log. Please verify you are running the latest version of flexget by using "flexget -V" from CLI or by using version_checker plugin at https://flexget.com/Plugins/version_checker. You are currently using version 3.5.27

Additional information:

  • FlexGet version:
  • Python version:
  • Installation method:
  • Using daemon (yes/no):
  • OS and version:
  • Link to crash log:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions