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.

Crash downloading subtitles [periscope and transmission]

See original GitHub issue

Expected behaviour:

  • Download from RSS
  • Download subtitles
  • Sort files

Actual behaviour:

When the task for subtitles starts it get so many time between elements and at the end it raises an error, so doesn’t download any subtitle.

Steps to reproduce:

  • Step 1: run flex get execute.
  • Step 2: download elements from rss --> OK
  • Step 3: download subtitles --> crash

Config:

templates:
  global:
    transmission:
      host: localhost
      port: 9091
      username: 'user'
      password: 'pass'
      ratio: -1
      path: /media/HDDRaspberry/Incompletas
      addpaused: no
tasks:
  rss:
    priority: 1
    rss: http://showrss.info/user/
    all_series: yes
  subtitles:
    priority: 4
    disable: builtins 
    filesystem:
      path:
        - /media/HDDRaspberry/Incompletas
      regexp:  '.*\.(mp4|mkv|avi)$'
      recursive: yes
    accept_all: yes    
    regexp:  
      reject:
        - '.*[sS]ample.*'
    periscope:
      languages:
        - en
      alternatives:
        - es
      overwrite: yes
  sort:
    priority: 5
    disable: builtins
    filesystem:
      path: /media/HDDRaspberry/Incompletas/
      mask: '*.srt'
      recursive: yes
    accept_all: yes
    seen: local
    thetvdb_lookup: yes
    all_series:
      parse_only: yes
    move:
      to:  /media/HDDRaspberry/Descargas/Series/{{ tvdb_series_name }}/Season {{ tvdb_season|pad(2) }}/
      rename: '{{ tvdb_series_name }} - {{ series_id }} - {{ tvdb_ep_name}}{{ location | pathext }}'
      clean_source: 100
      along:
        extensions:
          - mkv
          - mp4
          - avi

Log:

2017-06-13 23:17 VERBOSE  filesystem    subtitles       Starting to scan folders.
2017-06-13 23:17 VERBOSE  filesystem    subtitles       Scanning folder /media/HDDRaspberry/Incompletas. Recursion is set to True.
2017-06-13 23:17 INFO     download      subtitles       Downloading: Gotham.S03E18.720p.HDTV.x264-KILLERS
2017-06-13 23:19 INFO     download      subtitles       Downloading: orange.is.the.new.black.s05e01.proper.720p.webrip.x264-morose
2017-06-13 23:21 CRITICAL task          subtitles       BUG: Unhandled error in plugin transmission: 
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 483, 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/clients/transmission.py", line 303, in on_task_output
    self.add_to_transmission(self.client, task, config)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/clients/transmission.py", line 411, in add_to_transmission
    filedump = base64.b64encode(f.read()).decode('utf-8')
MemoryError

Additional information:

  • FlexGet version: 2.10.53
  • Python version: Python 2.7.9
  • Installation method: pip
  • Using daemon (yes/no): no
  • OS and version: osmc VERSION_ID=“2017.04-2”
  • Link to crash log:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cviumcommented, Jun 14, 2017

Do you know how It could be easily solve?

Don’t put transmission in the global template.

0reactions
liiightcommented, Jun 14, 2017

This is not something I ever see us addressing directly (other than getting rid of global templates…)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash when downloading subtitles · Issue #32 - GitHub
It doesn't download it there is no subtitle file in that dir or anywhere on system, when I choose subtitle and hit return...
Read more >
External Subtitles crashing app : r/PleX - Reddit
When I force transcoding, it works as the subtitle is being burned into the video. But when the app tries to play a...
Read more >
Untitled
Al jarreau after all download, Jane letshwene, Super king wooden bed frame ... Maria miranda age, Ziomek 2 chomikuj, Buy periscope, Manot cottages...
Read more >
App crash when downloading subtitle - MrMC
The application crashes when I try to download a subtitle from opensubtitles. I've uploaded FJ2WR.log debug log.
Read more >
Twitter's TV strategy: timelines, Periscope and troll-taming talent - HITC
And when a popular show persuades someone to download – or in the case of lapsed users, re-download – Twitter, the new TV...
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