question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: Discover/Piratebay: "'NoneType' object has no attribute 'group'"

See original GitHub issue

This has been happening to me on 2.3.3 - can’t see it mentioned, but sorry if it’s a dupe!

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 472, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/input/discover.py", line 290, in on_task_input
    return self.execute_searches(config, entries, task)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/input/discover.py", line 155, in execute_searches
    search_results = search.search(task=task, entry=entry, config=plugin_config)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugin.py", line 118, in wrapped_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/sites/piratebay.py", line 151, in search
    entry['content_size'] = parse_filesize(size.group(1))
AttributeError: 'NoneType' object has no attribute 'group'

Config:

  moviesPBHQ:
    verify_ssl_certificates: no
    discover:
      what:
        - movie_list:
            list_name: allmyfilms
            strip_year: yes
      from:
        - piratebay:
            category: movies
    template: movietemplate
    priority: 80
    seen: local
    quality:
      - 720p+
      - webrip+

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
liiightcommented, Aug 21, 2016

If you’d add --table-type github to that command, it’ll produce a github style table. Just sayin 😉

0reactions
Tommatheussencommented, Aug 27, 2016

Could this be becuase of how it finds the links? I noticed that newer torrents get added with the following uploaded string: Uploaded <b>26 minutes ago</b> ...

Noticed the bold tags, maybe that’s where it chokes on?

Read more comments on GitHub >

github_iconTop Results From Across the Web

'NoneType' object has no attribute 'group' - Stack Overflow
The error is in your line 11, your re.search is returning no results, ie None , and then you're trying to call fmtre.group...
Read more >
Error: 'NoneType' object has no attribute 'group' while installing
An unrecoverable error has occured. The error was: 'NoneType' object has no attribute 'group'. At first, 7.6.0 clean install.
Read more >
'NoneType' object has no attribute 'group' with python 3.5.3
'NoneType' object has no attribute 'group' with python 3.5.3 #5917 ... to 3.5.3 and when I try to install Ray with Poetry I...
Read more >
AttributeError 'NoneType' object has no attribute 'groups'
This error happens when using the Multixcan tool, it usually happens when the tool cant find files in the Metaxcan folder you provided....
Read more >
Regular Expression Error: 'NoneType' object has no attribute ...
Regular Expression Error: 'NoneType' object has no attribute 'group'. I wrote the following function to match and return the first number in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found