RHEL/CentOS - Automatic Video Library Manager for TV Shows
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
handlers
meta
tasks
templates
tests
vars
.travis.yml
COPYING
README.md

README.md

ansible-role-pymedusa

Build Status Ansible Galaxy License

RHEL/CentOS - Automatic Video Library Manager for TV Shows

Requirements

None

Role Variables

pymedusa_anime:
  anidb:
    anidb_use_mylist: 0
    use_anidb: 0
  anime:
    anime_split_home: 0
    anime_split_home_in_tabs: 0

pymedusa_blackhole:
  nzb_dir: ''
  torrent_dir: ''

pymedusa_faileddownloads:
  delete_failed: 0
  use_failed_downloads: 0

pymedusa_general:
  add_shows_wo_dir: 0
  airdate_episodes: 0
  allow_high_priority: 1
  allowed_extensions:
    - idx
    - nfo
    - srt
    - sub
  anime_default: 0
  anon_redirect: 'http://dereferer.org/?'
  api_key: "{{ 'medusa'|md5 }}"
  auto_update: 0
  autopostprocessor_frequency: 10
  backlog_days: 7
  backlog_frequency: 720
  backlog_period: all
  backlog_status: all
  branch: master
  broken_providers:
    - elitetorrent
  cache_dir: cache
  cache_trimming: 0
  calendar_icons: 0
  calendar_unprotected: 0
  check_propers_interval: 4h
  config_version: 10
  cpu_preset: NORMAL
  create_missing_show_dirs: 0
  dailysearch_frequency: 40
  dbdebug: 0
  debug: 0
  default_page: home
  del_rar_contents: 0
  developer: 0
  display_all_seasons: 1
  download_propers: 1
  enable_https: 0
  encryption_version: 0
  ep_default_deleted_status: 6
  extra_scripts: []
  fallback_plex_enable: 1
  fallback_plex_notifications: 1
  fallback_plex_timeout: 3
  file_timestamp_timezone: network
  flatten_folders_default: 0
  git_auth_type: 0
  git_remote: origin
  git_remote_url: https://github.com/pymedusa/Medusa
  git_reset: 1
  git_reset_branches:
    - develop
    - master
  handle_reverse_proxy: 0
  https_cert: server.crt
  https_key: server.key
  ignore_und_subs: 0
  ignore_words:
    - core2hd
    - dubbed
    - dutch
    - french
    - german
    - reenc
    - swedish
    - MrLss
  ignored_subs_list:
    - dk
    - fin
    - heb
    - kor
    - nor
    - nordic
    - pl
    - swe
  indexerDefaultLang: en
  indexer_default: 0
  indexer_timeout: 20
  keep_processed_dir: 1
  launch_browser: 1
  log_dir: Logs
  log_nr: 5
  log_size: 10.0
  max_cache_age: 30
  metadata_kodi: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
  metadata_kodi_12plus: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
  metadata_mede8er: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
  metadata_mediabrowser: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
  metadata_ps3: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
  metadata_tivo: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
  metadata_wdtv: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
  move_associated_files: 0
  naming_abd_pattern: '%SN - %A.D - %EN'
  naming_anime: 3
  naming_anime_multi_ep: 1
  naming_anime_pattern: 'Season %0S/%SN - S%0SE%0E - %EN'
  naming_custom_abd: 0
  naming_custom_anime: 0
  naming_custom_sports: 0
  naming_multi_ep: 1
  naming_pattern: 'Season %0S/%SN - S%0SE%0E - %EN'
  naming_sports_pattern: '%SN - %A-D - %EN'
  naming_strip_year: 0
  news_last_read: '2018-02-17'
  nfo_rename: 1
  no_delete: 0
  no_restart: 0
  notify_on_login: 0
  notify_on_update: 1
  nzb_method: blackhole
  postpone_if_no_subs: 0
  postpone_if_sync_files: 1
  preferred_words: []
  privacy_level: normal
  process_automatically: 0
  process_method: copy
  propers_search_days: 2
  provider_order: []
  proxy_indexers: 1
  quality_default: 3
  randomize_providers: 0
  remove_from_client: 0
  rename_episodes: 1
  require_words: []
  root_dirs: []
  scene_default: 0
  seeders_leechers_in_notify: 1
  selected_root: -1
  showupdate_hour: 2
  skip_removed_files: 0
  socket_timeout: 30
  sort_article: 0
  ssl_verify: 1
  status_default: 5
  status_default_after: 3
  subliminal_log: 0
  sync_files:
    - '!sync'
    - lftp-pget-status
    - part
    - bts
    - '!qb'
    - '!qB'
  torrent_checker_frequency: 60
  torrent_method: blackhole
  trackers_list:
    - http://explodie.org:6969/announce
    - http://ipv4.tracker.harry.lu:80/announce
    - http://mgtracker.org:6969/announce
    - http://p4p.arenabg.com:1337/announce
    - http://torrentsmd.com:8080/announce
    - http://tracker.dler.org:6969/announce
    - http://tracker.mg64.net:6881/announce
    - http://tracker.opentrackr.org:1337/announce
    - udp://9.rarbg.com:2710/announce
    - udp://explodie.org:6969/announce
    - udp://ipv4.tracker.harry.lu:80/announce
    - udp://mgtracker.org:2710/announce
    - udp://p4p.arenabg.com:1337/announce
    - udp://public.popcorn-tracker.org:6969/announce
    - udp://tracker.coppersurfer.tk:6969/announce
    - udp://tracker.internetwarriors.net:1337/announce
    - udp://tracker.leechers-paradise.org:6969/announce
    - udp://tracker.mg64.net:6969/announce
    - udp://tracker.opentrackr.org:1337/announce
    - udp://tracker.zer0day.to:1337/announce
  trash_remove_show: 0
  trash_rotate_logs: 0
  undesired_words:
    - internal
    - xvid
  unpack: 0
  update_frequency: 1
  use_listview: 0
  use_nzbs: 1
  use_torrents: 1
  usenet_retention: 500
  version_notify: 1
  web_host: 0.0.0.0
  web_ipv6: 0
  web_log: 0
  web_port: 8081
  web_use_gzip: 1

pymedusa_gui:
  coming_eps_display_paused: 0
  coming_eps_layout: banner
  coming_eps_missed_range: 7
  coming_eps_sort: date
  date_preset: '%x'
  display_show_specials: 1
  fanart_background: 1
  fanart_background_opacity: 0.4
  fuzzy_dating: 0
  history_layout: detailed
  history_limit: 100
  home_layout: poster
  layout_wide: false
  poster_sortby: name
  poster_sortdir: 1
  show_list_order:
    - Anime
    - Series
  theme_name: dark
  time_preset: '%I:%M:%S %p'
  timezone_display: local
  trim_zero: 0

pymedusa_media_dirs: []

pymedusa_notifications:
  Boxcar2:
    use_boxcar2: 0
  Discord:
    use_discord: 0
  Email:
    use_email: 0
  Emby:
    use_emby: 0
  FreeMobile:
    use_freemobile: 0
  Growl:
    use_growl: 0
  Join:
    use_join: 0
  KODI:
    use_kodi: 0
  Libnotify:
    use_libnotify: 0
  NMA:
    use_nma: 0
  NMJ:
    use_nmj: 0
  NMJv2:
    use_nmjv2: 0
  Plex:
    use_plex_client: 0
    use_plex_server: 0
  Prowl:
    use_prowl: 0
  Pushalot:
    use_pushalot: 0
  Pushbullet:
    use_pushbullet: 0
  Pushover:
    use_pushover: 0
  pyTivo:
    use_pytivo: 0
  Slack:
    use_slack: 0
  Synology:
    use_synoindex: 0
  SynologyNotifier:
    use_synologynotifier: 0
  Telegram:
    use_telegram: 0
  Trakt:
    use_trakt: 0
  Twilio:
    use_twilio: 0
  Twitter:
    use_twitter: 0

pymedusa_provider_custom:
  Newznab:
    newznab_providers: []
  TorrentRss:
    torrentrss_providers: []
  Torznab:
    torznab_providers: []

pymedusa_provider_nzbs:
  anizb:
    anizb: 0
  binsearch:
    binsearch: 0
  dognzb:
    dognzb: 0
  nzb_cat:
    nzb_cat: 0
  nzbgeek:
    nzbgeek: 0
  nzbs_org:
    nzbs_org: 0
  omgwtfnzbs:
    omgwtfnzbs: 0
  usenet_crawler:
    usenet_crawler: 0

pymedusa_provider_torrents:
  abnormal:
    abnormal: 0
  alpharatio:
    alpharatio: 0
  anidex:
    anidex: 0
  animebytes:
    animebytes: 0
  animetorrents:
    animetorrents: 0
  archetorrent:
    archetorrent: 0
  bitcannon:
    bitcannon: 0
  bithdtv:
    bithdtv: 0
  btn:
    btn: 0
  danishbits:
    danishbits: 0
  elitetorrent:
    elitetorrent: 0
  gftracker:
    gftracker: 0
  hdbits:
    hdbits: 0
  hdspace:
    hdspace: 0
  hdtorrents:
    hdtorrents: 0
  hd4free:
    hd4free: 0
  hebits:
    hebits: 0
  horriblesubs:
    horriblesubs: 0
  iptorrents:
    iptorrents: 0
  limetorrents:
    limetorrents: 0
  morethantv:
    morethantv: 0
  nebulance:
    nebulance: 0
  newpct:
    newpct: 0
  norbits:
    norbits: 0
  nyaa:
    nyaa: 0
  pretome:
    pretome: 0
  privatehd:
    privatehd: 0
  rarbg:
    rarbg: 0
  scenetime:
    scenetime: 0
  sdbits:
    sdbits: 0
  shanaproject:
    shanaproject: 0
  shazbat_tv:
    shazbat_tv: 0
  speedcd:
    speedcd: 0
  thepiratebay:
    thepiratebay: 0
  tntvillage:
    tntvillage: 0
  tokyotoshokan:
    tokyotoshokan: 0
  torrentbytes:
    torrentbytes: 0
  torrentday:
    torrentday: 0
  torrenting:
    torrenting: 0
  torrentleech:
    torrentleech: 0
  torrentz:
    torrentz: 0
  torrent9:
    torrent9: 0
  tvchaosuk:
    tvchaosuk: 0
  xthor:
    xthor: 0
  yggtorrent:
    yggtorrent: 0
  zooqle:
    zooqle: 0

pymedusa_provider_torznabs: {}

pymedusa_search:
  Newzbin:
    newzbin: 0
  NZBget:
    nzbget_category: tv
    nzbget_category_anime: anime
    nzbget_category_anime_backlog: anime
    nzbget_category_backlog: tv
    nzbget_password: tegbzn6789
    nzbget_priority: 100
    nzbget_use_https: 0
    nzbget_username: nzbget
  NZBs:
    nzbs: 0
  SABnzbd:
    sab_category: tv
    sab_category_anime: anime
    sab_category_anime_backlog: anime
    sab_category_backlog: tv
    sab_forced: 0
  TORRENT:
    torrent_auth_type: none
    torrent_high_bandwidth: 0
    torrent_paused: 0
    torrent_rpcurl: transmission
    torrent_seed_time: 0
    torrent_verify_cert: 0

pymedusa_subtitles:
  embedded_subtitles_all: 0
  embedded_subtitles_unknown_lang: 0
  subtitles_default: 0
  subtitles_erase_cache: 0
  subtitles_finder_frequency: 1
  subtitles_hearing_impaired: 0
  subtitles_history: 0
  subtitles_keep_only_wanted: 0
  subtitles_multi: 1
  subtitles_perfect_match: 1
  subtitles_stop_at_first: 0
  use_subtitles: 0

pymedusa_systemd: {}

Dependencies

Example Playbook

- hosts: servers
  roles:
    - role: linuxhq.pymedusa
      pymedusa_general:
        api_key: "{{ 'medusa'|md5 }}"
        auto_update: 1
        check_propers_interval: 15m
        create_missing_show_dirs: 1
        keep_processed_dir: 0
        launch_browser: 0
        naming_pattern: 'Season %0S/%S.N.S%0SE%0E.%Q.N-%RG'
        nzb_method: blackhole
        quality_default: 164
        randomize_providers: 1
        root_dirs:
          - '0, /mnt/tv'
        scene_default: 1
        torrent_method: transmission
        tv_download_dir: /mnt/medusa
        unpack: 1
        use_nzbs: 0
        use_torrents: 1
      pymedusa_media_dirs:
        - path: /transmission/medusa
          mode: 2775
      pymedusa_search:
        TORRENT:
          torrent_auth_type: none
          torrent_high_bandwidth: 0
          torrent_host: "http://0.0.0.0:9091/"
          torrent_path: /mnt/medusa
          torrent_paused: 0
          torrent_rpcurl: transmission
          torrent_seed_time: -1
          torrent_verify_cert: 0

License

Copyright (C) 2018 Taylor Kimball tkimball@linuxhq.org

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.