Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 1 of 3 123 LastLast
Results 1 to 15 of 41

Thread: Flexget, The tvdb.com and transmission

  1. #1

    Title
    Senior Member
    Join Date
    Jun 2015
    Posts
    238
    Thanks
    53
    Thanked 90 Times in 64 Posts

    Flexget, The tvdb.com and transmission

    Hi Everyone,

    Just got a VU+ duo2 box and am upgrading in someway from an openwrt router then a pi and now a VU+.
    I'm liking it so far and have managed to get my flexget and transmission set up working, I don't really know what I'm doing, but am good at getting things to work.. So anyway, I figured I could do a write up but it would mean me wiping my box and starting again, so I though I would check if there was a need for it first?

    Basically my set up is,

    You add a TV program as a favorite on thetvdb, two times a day my VU+ box checks an RSS feed for the TV program torrent, if it's available it will add it to transmission to download and email me, after it has downloaded it removes it from the torrent list and into the VU+ library..

    I understand this is probably not a suitable post for the community but if anyone would like a detailed write up, let me know and I will do it

  2. The Following User Says Thank You to ArowonA For This Useful Post:

    vps11 (26-05-16)

  3. #2

    Title
    ViX Beta Tester
    Join Date
    Jan 2011
    Posts
    14,099
    Thanks
    3,389
    Thanked 4,102 Times in 3,198 Posts
    Yes, please do. Sounds interesting, some gray areas though...
    Last edited by judge; 13-06-15 at 00:31.

  4. #3

    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2013
    Posts
    2,704
    Thanks
    68
    Thanked 567 Times in 487 Posts
    Would like a read of that myself, cheers.

  5. #4
    duoduo's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2013
    Location
    North West Seaside
    Posts
    2,006
    Thanks
    645
    Thanked 389 Times in 309 Posts
    Me too please..
    Vix image (usually latest) - VU Solo 4K- WD 1TB INTERNAL HDD - DVB-T Freeview, trialling IPTV options

    If my response has helped you, don't forget to hit the thanks button below. I appreciate you appreciate me

  6. #5

    Title
    Senior Member
    Join Date
    Jun 2015
    Posts
    238
    Thanks
    53
    Thanked 90 Times in 64 Posts

    Setup instructions

    Installing transmission

    I'm doing this from the TV as it creates the folder on your harddisk for you.
    Menu --> plug-in --> green --> extension --> transmission

    Then from the SSH shell we want to edit the config (I install nano for this as i prefer it to vi)
    Code:
    opkg update
    opkg install nano 
    /etc/init.d/transmissiond start
    /etc/init.d/transmissiond stop
    nano /media/hdd/transmission/config/settings.json
    The lines I want to change are

    "blocklist-enabled": true,
    "blocklist-url": "http://tbg.iblocklist.com/Lists/ipfilter.dat.gz",
    "incomplete-dir": "/media/hdd/transmission/incomplete",
    "incomplete-dir-enabled": true,
    "rpc-authentication-required": false,
    "script-torrent-done-enabled": true,
    "script-torrent-done-filename": "/media/hdd/transmission/config/finish.sh",

    The main change I make is to turn authentication off, just because I'm not making it accessible from the internet so I don't really need a password
    this also requires editing the file /etc/init.d/transmissiond and changing the line

    ARGS="-c $WATCH_DIR -g $CONFIG_DIR -a *.*.*.* -w $DOWNLOAD_DIR -p $RPC_PORT -t -u $USER -v $PASSWORD"
    to
    ARGS="-c $WATCH_DIR -g $CONFIG_DIR -a *.*.*.* -w $DOWNLOAD_DIR -p $RPC_PORT"

    The other changes are not really needed, I'm not even sure if that blocklist is updated any more.
    The script I choose to run after a download has finished is to remove the torrent from my list so I'm not sharing it anymore (not really considered a nice thing to do)
    Once you've made the changes to the settings.json file if you press [ctrl] and [x] to save, then we need to make the extra folder, selfish script and set transmission to autostart
    Code:
    echo "#!/bin/sh 
    transmission-remote -l | grep 100% | grep Done | awk '{print $1}' | 
    xargs -t -n 1 -I % transmission-remote -t % -r
    mv /media/hdd/transmission/download/* /media/hdd/movie/Downloads" >>  /media/hdd/transmission/config/finish.sh
    chmod +x  /media/hdd/transmission/config/finish.sh
    mkdir /hdd/transmission/incomplete
    mkdir /hdd/movie/Downloads
    /etc/init.d/transmissiond enable
    /etc/init.d/transmissiond start
    That's it, you can now go to http://ip-address-of-the-box:9091 and add torrents , not sure I really needed to make all these instructions as the plug-in works pretty well without doing all this stuff

    Installing flexget

    Run the following commands (I had an issue with this as I had just wiped my box and the date was set to 1970, so check this first)
    Code:
    opkg update
    opkg install python-distutils 
    opkg install python-unittest
    opkg install python-compile
    opkg install python-pkgutil
    opkg install python-sqlite3
    opkg install python-xmlrpc
    cd /tmp
    wget https://bootstrap.pypa.io/ez_setup.py -O - | python
    easy_install pip
    pip install flexget 
    pip install transmissionrpc
    Creating the config file
    Code:
    mkdir /media/hdd/flexget
    ln -s /media/hdd/flexget ~/.flexget
    mkdir /media/hdd/movie/TV
    nano /media/hdd/flexget/config.yml
    My config file looks like this (You can probably see it's not been updated for a while)
    Code:
    tasks:
    #  EZTV:
    #    template: tv
    #   rss: https://ezrss.it/feed/
    #    rss: http://feeds.feedburner.com/eztv-rss-atom-feeds?format=xml
      Karmorra:
        template: tv
        rss: http://showrss.info/feeds/all.rss
      Manual:
        template: manual
        rss: http://showrss.info/feeds/all.rss
    templates:
      tv:
        email:
          active: true
          from: box@mydomain.blah
          smtp_host: smtp.gmail.com
          smtp_port: 587
          smtp_username: my gmail username
          smtp_password: password
          smtp_tls: yes
          to: myrealemailaddress@aaa.blah
        configure_series:
          from:
            thetvdb_favorites:
              account_id: tvdbkey
          settings:
            identified_by: ep
    #        target: hdtv
    #        timeframe: 6 hours
    #        quality: 720p-1080p 
        exists_series:
          - /media/hdd/movie/TV
          - /media/hdd
        thetvdb_lookup: yes
        set:
          path: "/media/hdd/movie/TV/{{series_name}}/Season {{ series_season }}"
          content_filename: |
            {{ series_id }}
              {% if ep_name|default(False) %} - {{ ep_name }} {% endif %} - {{ quality|upper }}
            {% if proper_count %} - proper{% if proper_count > 1 %}{{ proper_count }}{% endif %}{% endif %}
          fail_html: no
        transmission:
          host: 127.0.0.1
          port: 9091
        clean_transmission:
          host: 127.0.0.1
          port: 9091
          finished_for: 1 hours    
        trakt_add:
          password: traktpassword
          list: series
          username: traktusername
      manual:
        email:
          active: true
          from: box@mydomain.blah
          smtp_host: smtp.gmail.com
          smtp_port: 587
          smtp_username: my gmail username
          smtp_password: password
          smtp_tls: yes
          to: myrealemailaddress@aaa.blah
        series:
          settings:
            hdtv:
              identified_by: date
    #          target: hdtv
    #          timeframe: 6 hours
    #          quality: 720p-1080p 
          hdtv:
            - The Daily Show (with Jon Stewart)
            - The Colbert Report
        exists_series:
          - /media/hdd/movie/TV
          - /media/hdd
        set:
          path: "/media/hdd/movie/TV/{{series_name}}/Season {{ series_season }}"
          content_filename: |
            {{ series_id }}
              {% if ep_name|default(False) %} - {{ ep_name }} {% endif %} - {{ quality|upper }}
            {% if proper_count %} - proper{% if proper_count > 1 %}{{ proper_count }}{% endif %}{% endif %}
          fail_html: no
        transmission:
          host: localhost
          port: 9091
        clean_transmission:
          host: localhost
          port: 9091
          finished_for: 1 hours    
        trakt_add:
          password: blah
          list: series
          username: blah
    More details on the config options can be found on the flexget website, if you want to copy some of mine you will need to alter the email settings for your username/password, I created a gmail account just for sending notifications as the config file contains the password in cleartext. You will also need to add your TheTVDB account-id you can get this from Account settings on their website. Trakt i added as well to keep a note of what I'm watching, so if you want to use that add your username/password.

    Once you've created your config file you can check it by running
    Code:
    flexget check
    and then execute it by running
    Code:
    flexget execute
    The final step it to add 'flexget execute' as a cron job but I think I've written enough for now.

    Good luck, and if anyone sees a better way of doing something let me know

    ArowanA

  7. The Following 3 Users Say Thank You to ArowonA For This Useful Post:

    Alankellyeire (14-05-17),rossi2000 (27-08-15),vps11 (26-05-16)

  8. #6

    Title
    Senior Member
    Join Date
    Jun 2015
    Posts
    238
    Thanks
    53
    Thanked 90 Times in 64 Posts
    Just for my own reference, the latest update also requires
    Code:
    opkg install python-importlib

  9. The Following 2 Users Say Thank You to ArowonA For This Useful Post:

    rossi2000 (27-08-15),vps11 (26-05-16)

  10. #7

    Title
    Junior Member
    Join Date
    May 2016
    Posts
    21
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Can this be updated, the command stops working at - easy_install pip

    Please Update the instructions.

  11. #8

    Title
    Senior Member
    Join Date
    Jun 2015
    Posts
    238
    Thanks
    53
    Thanked 90 Times in 64 Posts
    I guess you're getting an error like this?
    Code:
    https://github.com/pypa/setuptools/issues/514
    Looks like they've stopped support for Python 2 in the latest setuptools, you can manually download the ez_setup.py edit it and change the line
    Code:
    DEFAULT_VERSION = LATEST
    to
    Code:
    DEFAULT_VERSION = 18.4
    and start it with python, or rather than running (in the instructions above)
    Code:
    wget https://bootstrap.pypa.io/ez_setup.py -O - | python
    try
    Code:
    wget https://phm.pw/ez_setup.py -O - | python
    , Hopefully it'll work.

  12. The Following User Says Thank You to ArowonA For This Useful Post:

    vps11 (26-05-16)

  13. #9

    Title
    Junior Member
    Join Date
    May 2016
    Posts
    21
    Thanks
    14
    Thanked 0 Times in 0 Posts
    I already have transmission so I skipped the transmission part.

    it places this file in the tmp folder - setuptools-18.4.zip

    this is the error i get:

    Code:
    root@vuduo2:/var/volatile/tmp# wget https://phm.pw/ez_setup.py -O - | python
    Connecting to phm.pw (217.36.75.107:443)
    -                    100% |*******************************| 12383   0:00:00 ETA
    Extracting in /tmp/tmpFScBdh
    Now working in /tmp/tmpFScBdh/setuptools-18.4
    Installing Setuptools
    Traceback (most recent call last):
      File "setup.py", line 21, in <module>
        exec(init_file.read(), command_ns)
      File "<string>", line 11, in <module>
      File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/setuptools/__init__.py", line 12, in <module>
        from setuptools.extension import Extension
      File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/setuptools/extension.py", line 8, in <module>
        from .dist import _get_unpatched
      File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/setuptools/dist.py", line 19, in <module>
        import pkg_resources
      File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/pkg_resources/__init__.py", line 36, in <module>
        import plistlib
    ImportError: No module named plistlib
    Something went wrong during the installation.
    See the error message above.
    root@vuduo2:/var/volatile/tmp#

  14. #10

    Title
    Senior Member
    Join Date
    Jun 2015
    Posts
    238
    Thanks
    53
    Thanked 90 Times in 64 Posts
    You will need to install python-plistlib as well then, if you type
    Code:
    opkg install python-plistlib
    and then try the setuptools command again.

  15. The Following User Says Thank You to ArowonA For This Useful Post:

    vps11 (26-05-16)

  16. #11

    Title
    Junior Member
    Join Date
    May 2016
    Posts
    21
    Thanks
    14
    Thanked 0 Times in 0 Posts
    looks good, now Im moving onto the next step.

  17. #12

    Title
    Junior Member
    Join Date
    May 2016
    Posts
    21
    Thanks
    14
    Thanked 0 Times in 0 Posts
    got another problem

    Code:
    root@vuduo2:~# flexget check
    Traceback (most recent call last):
      File "/usr/bin/flexget", line 7, in <module>
        from flexget import main
      File "/usr/lib/python2.7/site-packages/flexget/__init__.py", line 11, in <module>
        from flexget import logger
      File "/usr/lib/python2.7/site-packages/flexget/logger.py", line 20, in <module>
        from flexget.utils.tools import io_encoding
      File "/usr/lib/python2.7/site-packages/flexget/utils/tools.py", line 5, in <module>
        from past.builtins import basestring
      File "/usr/lib/python2.7/site-packages/past/__init__.py", line 88, in <module>
        from past.translation import install_hooks as autotranslate
      File "/usr/lib/python2.7/site-packages/past/translation/__init__.py", line 41, in <module>
        from lib2to3.pgen2.parse import ParseError
    ImportError: No module named lib2to3.pgen2.parse

  18. #13

    Title
    Junior Member
    Join Date
    May 2016
    Posts
    21
    Thanks
    14
    Thanked 0 Times in 0 Posts
    flexget execute

    Code:
    root@vuduo2:~# flexget execute
    Traceback (most recent call last):
      File "/usr/bin/flexget", line 7, in <module>
        from flexget import main
      File "/usr/lib/python2.7/site-packages/flexget/__init__.py", line 11, in <module>
        from flexget import logger
      File "/usr/lib/python2.7/site-packages/flexget/logger.py", line 20, in <module>
        from flexget.utils.tools import io_encoding
      File "/usr/lib/python2.7/site-packages/flexget/utils/tools.py", line 5, in <module>
        from past.builtins import basestring
      File "/usr/lib/python2.7/site-packages/past/__init__.py", line 88, in <module>
        from past.translation import install_hooks as autotranslate
      File "/usr/lib/python2.7/site-packages/past/translation/__init__.py", line 41, in <module>
        from lib2to3.pgen2.parse import ParseError
    ImportError: No module named lib2to3.pgen2.parse

  19. #14

    Title
    Senior Member
    Join Date
    Jun 2015
    Posts
    238
    Thanks
    53
    Thanked 90 Times in 64 Posts
    It looks like Flexget are no longer supporting Python 2 either, you will need to install an older version for now.
    Code:
    pip uninstall flexget
    pip install flexget==1.2.521

  20. The Following User Says Thank You to ArowonA For This Useful Post:

    vps11 (26-05-16)

  21. #15

    Title
    Junior Member
    Join Date
    May 2016
    Posts
    21
    Thanks
    14
    Thanked 0 Times in 0 Posts
    this one too long, full error pasted here

    http://pastebin.com/99ABdpf6


    Code:
    root@vuduo2:~# flexget check
    2016-05-25 17:15 CRITICAL plugin                        Plugin `flexget.plugins.                                                                                        urlrewrite_koreus` failed to import dependencies
    2016-05-25 17:15 ERROR    plugin                        No module named pdb
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 381, in _load_                                                                                        plugins_from_dirs
        __import__(module_name)
      File "/usr/lib/python2.7/site-packages/flexget/plugins/urlrewrite_koreus.py",                                                                                         line 10, in <module>
        from flexget.utils.soup import get_soup
      File "/usr/lib/python2.7/site-packages/flexget/utils/soup.py", line 2, in <mod                                                                                        ule>
        from bs4 import BeautifulSoup
      File "/usr/lib/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
        from .builder import builder_registry, ParserRejectedMarkup
      File "/usr/lib/python2.7/site-packages/bs4/builder/__init__.py", line 4, in <m                                                                                        odule>
        from bs4.element import (
      File "/usr/lib/python2.7/site-packages/bs4/element.py", line 3, in <module>
        from pdb import set_trace
    ImportError: No module named pdb
    2016-05-25 17:15 CRITICAL plugin                        Plugin `flexget.plugins.                                                                                        api.movie_queue` failed to import dependencies
    2016-05-25 17:15 ERROR    plugin                        No module named pdb
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 381, in _load_                                                                                        plugins_from_dirs
        __import__(module_name)
      File "/usr/lib/python2.7/site-packages/flexget/plugins/api/movie_queue.py", li                                                                                        ne 11, in <module>
        from flexget.plugins.filter import movie_queue as mq
      File "/usr/lib/python2.7/site-packages/flexget/plugins/filter/movie_queue.py",                                                                                         line 14, in <module>
        from flexget.utils.imdb import extract_id
      File "/usr/lib/python2.7/site-packages/flexget/utils/imdb.py", line 6, in <mod                                                                                        ule>
        from bs4.element import Tag
      File "/usr/lib/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
        from .builder import builder_registry, ParserRejectedMarkup
      File "/usr/lib/python2.7/site-packages/bs4/builder/__init__.py", line 4, in <m                                                                                        odule>
        from bs4.element import (
      File "/usr/lib/python2.7/site-packages/bs4/element.py", line 3, in <module>
        from pdb import set_trace
    ImportError: No module named pdb
    2016-05-25 17:15 CRITICAL plugin                        Plugin `flexget.plugins.                                                                                        api.seen` failed to import dependencies
    2016-05-25 17:15 ERROR    plugin                        No module named pdb
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 381, in _load_                                                                                        plugins_from_dirs
        __import__(module_name)
      File "/usr/lib/python2.7/site-packages/flexget/plugins/api/seen.py", line 11,                                                                                         in <module>
        from flexget.plugins.filter import seen
      File "/usr/lib/python2.7/site-packages/flexget/plugins/filter/seen.py", line 2                                                                                        5, in <module>

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.