marine88

my config

May 12th, 2016
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.48 KB | None | 0 0
  1. secrets: secrets.yml
  2.  
  3. ##### webui
  4. #
  5. web_server:
  6. bind: 0.0.0.0
  7. port: 3539
  8. api: yes
  9. webui: yes
  10.  
  11.  
  12. ##### schedules
  13. #
  14. schedules:
  15. # Run every 1 hour between 00 and 12
  16. - tasks: [populate-series-db, purge-series-list, fill-series-list, download-series-rss, download-series-discover, fill-movie-queue, checkIMDBlist, download-movies-1080p, download-movies-720p, download-movies-sd, download-subtitles]
  17. schedule:
  18. hour: 00-12/1
  19. - tasks: [clean-movie-queue, clean-series-list, clean-transmission, update-series-list, move-movies, move-series, clean-series-list]
  20. interval:
  21. days: 1
  22.  
  23. templates:
  24. global:
  25. no_entries_ok: yes
  26. pathscrub: windows
  27. free_space:
  28. path: '/{{secrets.folder.root}}'
  29. space: 5000
  30. # Requires log_filter plugin
  31. log_filter:
  32. task:
  33. - marked seen
  34. - because quality already downloaded
  35. - because episode has already been downloaded
  36. - Task does not have any
  37. move:
  38. - left because it exceeds safety value
  39. - does not exists (anymore)
  40. urlrewriter:
  41. - URL rewritten to
  42. enzyme.mkv:
  43. - Reading
  44. - Processing
  45. enzyme.parsers.ebml.core:
  46. - ignored
  47. - Maximum level
  48. subliminal.video:
  49. - Scanning video
  50. parser_internal:
  51. - appears to be an episode pack
  52. content_size:
  53. - rejecting
  54. search_rss:
  55. - Error
  56. assume_quality:
  57. - ""
  58. utils.requests:
  59. - Waiting
  60.  
  61. ##### Series config
  62. #
  63. series:
  64. thetvdb_lookup: yes
  65. #include: series.yml
  66. configure_series:
  67. from:
  68. entry_list: trakt-series
  69. settings:
  70. identified_by: ep
  71. timeframe: 15 minutes
  72. target: hdtv 720p !h265
  73. quality: tvrip+ 480p+ !h265
  74. propers: 16 hours
  75. specials: no
  76. content_size:
  77. min: 150
  78. max: 1000
  79.  
  80.  
  81. ##### Movies config
  82. #
  83. movies-1080p:
  84. tmdb_lookup: yes
  85. movie_list: trakt-movies
  86. quality: 1080p webdl+ !h265
  87. content_size:
  88. min: 1000
  89. max: 6000
  90.  
  91. movies-720p:
  92. tmdb_lookup: yes
  93. movie_list: trakt-movies
  94. quality: 720p webdl+ !h265
  95. content_size:
  96. min: 500
  97. max: 3000
  98.  
  99. movies-sd:
  100. tmdb_lookup: yes
  101. movie_list: trakt-movies
  102. quality: xvid|divx|h264 <720p
  103. content_size:
  104. min: 500
  105. max: 2000
  106.  
  107. ##### Pushbullet config
  108. #
  109. pushbullet:
  110. pushbullet:
  111. apikey: '{{secrets.pushbullet.api}}'
  112. title: "[Flexget] {{task}}"
  113. body: "{{title}}"
  114.  
  115. ##### Common rejections
  116. #
  117. reject:
  118. regexp:
  119. reject:
  120. - (s|d)ub(s|bed|lado|titulado)?\b
  121. - \bdual\b
  122. - \b3d\b
  123. - \b(fr)(ench)?\b
  124. - \b(ita)(lian)?\b
  125. - \b(spa)(nish)?\b
  126. - \b(ger)(man)?\b
  127. - \bcastellano\b
  128. - \brus(sian)?\b
  129. content_filter:
  130. reject:
  131. - '*.rar'
  132. - '*.zip'
  133.  
  134. ##### Common torrents config
  135. #
  136. torrents:
  137. torrent_alive:
  138. min_seeds: 10
  139. reject_for: 15 minutes
  140. magnets: no
  141. # Might need to disable if you are getting errors connecting to https sources
  142. # Can remove if you upgrade to python 2.7.9+ or install requests[security]
  143. #verify_ssl_certificates: no
  144. domain_delay:
  145. torrentz.eu: 1 seconds
  146. unblocked.la: 1 seconds
  147. nyaa.se: 1 seconds
  148.  
  149. ##### Transmission series config
  150. #
  151. transmission:
  152. transmission:
  153. host: '{{secrets.transmission.host}}'
  154. port: 9091
  155. username: '{{secrets.transmission.user}}'
  156. password: '{{secrets.transmission.pass}}'
  157. main_file_only: yes
  158. include_subs: yes
  159. skip_files:
  160. - '*.nfo'
  161. - '*.sfv'
  162. - '*.txt'
  163. - '*[sS]ample*'
  164. - '*[tT]railer*'
  165.  
  166. ##### Transmission series config
  167. #
  168. transmission-series:
  169. transmission:
  170. content_filename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %}: - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %}: - [{{quality}}]{% endif %}"
  171. path: "/{{secrets.folder.root}}{{secrets.folder.downseries}}{{tvdb_series_name|default(series_name)|pathscrub}}/Season {{ series_season|pad(2)}}"
  172.  
  173. ##### Transmission movies config
  174. #
  175. transmission-movies:
  176. transmission:
  177. content_filename: "{{tmdb_name|pathscrub}} ({{tmdb_year}}){% if quality|default(False) %}: - [{{quality}}]{% endif %}"
  178. path: "/{{secrets.folder.root}}{{secrets.folder.downmovies}}{{movie_name|pathscrub}}"
  179.  
  180.  
  181. ##### Disable builtins for some tasks
  182. #
  183. disable-seen-retry:
  184. disable:
  185. - seen
  186. - seen_info_hash
  187. - retry_failed
  188.  
  189. ##### Series metainfo mainly for move and update tasks
  190. #
  191. series-metainfo:
  192. metainfo_series: yes
  193. thetvdb_lookup: yes
  194.  
  195. ##### Movies metainfo mainly for move and update tasks
  196. #
  197. movies-metainfo:
  198. tmdb_lookup: yes
  199. parsing:
  200. movie: guessit
  201.  
  202. tasks:
  203.  
  204. ##### Populates the series database with the files on the library, to avoid duplicate downloads
  205. #
  206. populate-series-db:
  207. priority: 1
  208. template:
  209. - series-metainfo
  210. seen: local
  211. filesystem:
  212. path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
  213. recursive: yes
  214. retrieve: files
  215. regexp: '.*\.(avi|mkv|mp4)$'
  216. accept_all: yes
  217. configure_series:
  218. from:
  219. filesystem:
  220. path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
  221. retrieve: dirs
  222. settings:
  223. tracking: no
  224.  
  225.  
  226. ##### Purge the series list to allow full sync with trakt series list
  227. #
  228. purge-series-list:
  229. priority: 2
  230. template:
  231. - disable-seen-retry
  232. entry_list: trakt-series
  233. accept_all: yes
  234. list_remove:
  235. - entry_list: trakt-series
  236.  
  237.  
  238. ##### Fetch, format and output trakt series list to a custom entry list
  239. #
  240. fill-series-list:
  241. priority: 3
  242. template:
  243. - disable-seen-retry
  244. - series-metainfo
  245. trakt_list:
  246. account: '{{secrets.trakt.account}}'
  247. list: '{{secrets.trakt.series}}'
  248. type: shows
  249. accept_all: yes
  250. set:
  251. title: "{{tvdb_series_name|escape|replace('&#39;', '')}}"
  252. list_add:
  253. - entry_list: trakt-series
  254.  
  255.  
  256. ##### Download episodes from manually downloaded torrents
  257. #
  258. download-series-manual:
  259. priority: 4
  260. manual: yes
  261. template:
  262. - disable-seen-retry
  263. - series-metainfo
  264. - transmission
  265. - transmission-series
  266. - pushbullet
  267. filesystem:
  268. path: '/{{secrets.folder.root}}{{secrets.folder.downseries}}'
  269. mask: '*.torrent'
  270. parsing:
  271. series: guessit
  272. accept_all: yes
  273. exec:
  274. on_output:
  275. for_accepted: rm -f "{{location}}"
  276.  
  277.  
  278. ##### Download episodes from RSS feeds
  279. #
  280. download-series-rss:
  281. priority: 5
  282. template:
  283. - series
  284. - reject
  285. - torrents
  286. - transmission
  287. - transmission-series
  288. - pushbullet
  289. inputs:
  290. - rss:
  291. url: http://torrentz.eu/feedA?good&q=tv
  292. all_entries: yes
  293. - rss:
  294. url: https://kickass.unblocked.la/tv/?rss=1
  295. all_entries: yes
  296.  
  297.  
  298. ##### Discover and download older episodes and pilots from recently added series, set with interval to avoid spam
  299. #
  300. download-series-discover:
  301. priority: 6
  302. template:
  303. - series
  304. - reject
  305. - torrents
  306. - transmission
  307. - transmission-series
  308. - pushbullet
  309. discover:
  310. release_estimations: ignore
  311. interval: 15 minutes
  312. what:
  313. - emit_series:
  314. from_start: yes
  315. from:
  316. - torrentz: good
  317. - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
  318.  
  319.  
  320.  
  321.  
  322.  
  323. ##### Remove manually movies downloaded from the movie queue and trakt list
  324. #
  325. clean-movie-queue:
  326. priority: 11
  327. template:
  328. - disable-seen-retry
  329. - movies-metainfo
  330. filesystem:
  331. path: '/{{secrets.folder.root}}{{secrets.folder.movies}}'
  332. recursive: yes
  333. retrieve: files
  334. regexp: '.*\.(avi|mkv|mp4)$'
  335. accept_all: yes
  336. list_remove:
  337. - movie_list: trakt-movies
  338. #- movie_list: from-imdb
  339. - trakt_list:
  340. account: '{{secrets.trakt.account}}'
  341. list: '{{secrets.trakt.movies}}'
  342.  
  343.  
  344. ##### Fill the movie queue with movies from trakt list
  345. #
  346. fill-movie-queue:
  347. priority: 12
  348. trakt_list:
  349. account: '{{secrets.trakt.account}}'
  350. list: '{{secrets.trakt.movies}}'
  351. type: movies
  352. strip_dates: yes
  353. #imdb_list:
  354. #login: '{{secrets.imdb.login}}'
  355. #password: '{{secrets.imdb.password}}'
  356. #list: '{{secrets.imdb.list}}'
  357. rss: http://rss.imdb.com/user/ur15183663/watchlist
  358. accept_all: yes
  359. list_add:
  360. - movie_list: trakt-movies
  361. #- movie_list: from-imdb
  362.  
  363. ##### Fill the movie queue with movies from trakt list
  364. #
  365. checkIMDBlist:
  366. rss: 'http://rss.imdb.com/user/ur15183663/watchlist'
  367. list_add:
  368. - movie_list: from-imdb
  369.  
  370. ##### Download movies manually downloaded torrents
  371. #
  372. download-movies-manual:
  373. priority: 15
  374. manual: yes
  375. template:
  376. - disable-seen-retry
  377. - movies-metainfo
  378. - transmission
  379. - transmission-movies
  380. - pushbullet
  381. filesystem:
  382. path: '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
  383. mask: '*.torrent'
  384. accept_all: yes
  385. exec:
  386. on_output:
  387. for_accepted: rm -f "{{location}}"
  388. list_remove:
  389. - trakt_list:
  390. account: '{{secrets.trakt.account}}'
  391. list: '{{secrets.trakt.movies}}'
  392.  
  393.  
  394. ##### Download 1080p movies
  395. #
  396. download-movies-1080p:
  397. priority: 16
  398. template:
  399. - movies-1080p
  400. - reject
  401. - torrents
  402. - transmission
  403. - transmission-movies
  404. - pushbullet
  405. exists_movie:
  406. - '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
  407. - '/{{secrets.folder.root}}{{secrets.folder.movies}}'
  408. discover:
  409. release_estimations: ignore
  410. interval: 15 minutes
  411. what:
  412. - movie_list: trakt-movies
  413. #- movie_list: from-imdb
  414. from:
  415. - torrentz: good
  416. - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
  417. list_queue:
  418. - movie_list: trakt-movies
  419. #- movie_list: from-imdb
  420. list_remove:
  421. - trakt_list:
  422. account: '{{secrets.trakt.account}}'
  423. list: '{{secrets.trakt.movies}}'
  424.  
  425.  
  426. ##### Download 720p movies if the movie is not recent
  427. #
  428. download-movies-720p:
  429. priority: 17
  430. template:
  431. - movies-720p
  432. - reject
  433. - torrents
  434. - transmission
  435. - transmission-movies
  436. - pushbullet
  437. exists_movie:
  438. - '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
  439. - '/{{secrets.folder.root}}{{secrets.folder.movies}}'
  440. discover:
  441. release_estimations: ignore
  442. interval: 15 minutes
  443. what:
  444. - movie_list: trakt-movies
  445. #- movie_list: from-imdb
  446. from:
  447. - torrentz: good
  448. - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
  449. if:
  450. - tmdb_year > now.year - 1: reject
  451. list_queue:
  452. - movie_list: trakt-movies
  453. #- movie_list: from-imdb
  454. list_remove:
  455. - trakt_list:
  456. account: '{{secrets.trakt.account}}'
  457. list: '{{secrets.trakt.movies}}'
  458.  
  459. ##### Download sd movies if the movie is not recent
  460. #
  461. download-movies-sd:
  462. priority: 17
  463. template:
  464. - movies-sd
  465. - reject
  466. - torrents
  467. - transmission
  468. - transmission-movies
  469. - pushbullet
  470. exists_movie:
  471. - '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
  472. - '/{{secrets.folder.root}}{{secrets.folder.movies}}'
  473. discover:
  474. release_estimations: ignore
  475. interval: 15 minutes
  476. what:
  477. - movie_list: trakt-movies
  478. #- movie_list: from-imdb
  479. from:
  480. - torrentz: good
  481. - search_rss: https://kickass.unblocked.la/usearch/{{search_term}}/?rss=1
  482. if:
  483. - tmdb_year > now.year - 2: reject
  484. list_queue:
  485. - movie_list: trakt-movies
  486. #- movie_list: from-imdb
  487. list_remove:
  488. - trakt_list:
  489. account: '{{secrets.trakt.account}}'
  490. list: '{{secrets.trakt.movies}}'
  491.  
  492.  
  493. ##### Move series from downloads folder to respective folders, along with existing subtitles and adding the files to the subtitle queue
  494. #
  495. move-series:
  496. priority: 21
  497. template:
  498. - disable-seen-retry
  499. - series-metainfo
  500. - pushbullet
  501. filesystem:
  502. path: '/{{secrets.folder.root}}{{secrets.folder.downseries}}'
  503. recursive: yes
  504. retrieve: files
  505. regexp: '.*\.(avi|mkv|mp4)$'
  506. # might be needed for some series, but causes issues with "name (year)" based series, like scandal
  507. # parsing:
  508. # series: guessit
  509. accept_all: yes
  510. regexp:
  511. reject:
  512. - \btrailer\b
  513. - \bsample\b
  514. move:
  515. to: "/{{secrets.folder.root}}{{secrets.folder.series}}{{tvdb_series_name|escape|replace('&#39;', '')|pathscrub}}/"
  516. filename: "{{tvdb_series_name|escape|replace('&#39;', '')|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %}: - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %}: - [{{quality}}]{% endif %}"
  517. along:
  518. - srt
  519. - sub
  520. - en.srt
  521. - en.sub
  522. clean_source: 100
  523. subtitle_queue:
  524. action: add
  525. path: "{{output}}"
  526. exec:
  527. on_exit:
  528. for_accepted: find '/{{secrets.folder.root}}{{secrets.folder.downseries}}'* -type d -empty -delete
  529.  
  530.  
  531.  
  532. ##### Move movies from downloads folder to the movies folder, along with possible subtitles and adding the files to the subtitle queue
  533. #
  534. move-movies:
  535. priority: 26
  536. template:
  537. - disable-seen-retry
  538. - movies-metainfo
  539. - pushbullet
  540. filesystem:
  541. path: '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'
  542. recursive: yes
  543. retrieve: files
  544. regexp: '.*\.(avi|mkv|mp4)$'
  545. accept_all: yes
  546. regexp:
  547. reject:
  548. - \btrailer\b
  549. - \bsample\b
  550. move:
  551. to: '/{{secrets.folder.root}}{{secrets.folder.movies}}'
  552. filename: "{{tmdb_name|pathscrub}} ({{tmdb_year}}){% if quality|default(False) %}: - [{{quality}}]{% endif %}"
  553. along:
  554. - srt
  555. - sub
  556. - en.srt
  557. - en.sub
  558. clean_source: 100
  559. subtitle_queue:
  560. action: add
  561. path: "{{output}}"
  562. exec:
  563. on_exit:
  564. for_accepted: find '/{{secrets.folder.root}}{{secrets.folder.downmovies}}'* -type d -empty -delete
  565.  
  566. ##### Download subtitles for the previously queued files
  567. #
  568. # Might have issues until final release of subliminal 2.0, see: http://discuss.flexget.com/t/subliminal-error/2023/
  569. download-subtitles:
  570. priority: 31
  571. template:
  572. - disable-seen-retry
  573. subtitle_queue: emit
  574. accept_all: yes
  575. subliminal:
  576. exact_match: yes
  577. languages:
  578. - por
  579. alternatives:
  580. - eng
  581. providers:
  582. - opensubtitles
  583. - addic7ed
  584. - podnapisi
  585. - thesubdb
  586. - tvsubtitles
  587.  
  588. subtitle-series:
  589. filesystem:
  590. path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
  591. regexp: '.*\.(avi|mkv|mp4)$'
  592. recursive: yes
  593. accept_all: yes
  594. subliminal:
  595. languages:
  596. - por
  597. alternatives:
  598. - eng
  599. exact_match: yes
  600. providers:
  601. - opensubtitles
  602. - addic7ed
  603. - podnapisi
  604. - thesubdb
  605. - tvsubtitles
  606. single: no
  607.  
  608.  
  609. subtitle-movies:
  610. filesystem:
  611. path: '/{{secrets.folder.root}}{{secrets.folder.movies}}'
  612. regexp: '.*\.(avi|mkv|mp4)$'
  613. recursive: yes
  614. accept_all: yes
  615. subliminal:
  616. languages:
  617. - por
  618. alternatives:
  619. - eng
  620. exact_match: yes
  621. providers:
  622. - opensubtitles
  623. - addic7ed
  624. - podnapisi
  625. - thesubdb
  626. - tvsubtitles
  627. single: no
  628.  
  629. ##### Clean finished torrents from transmission
  630. #
  631. clean-transmission:
  632. priority: 33
  633. disable: details
  634. clean_transmission:
  635. host: '{{secrets.transmission.host}}'
  636. port: 9091
  637. username: '{{secrets.transmission.user}}'
  638. password: '{{secrets.transmission.pass}}'
  639. finished_for: 2 hours
  640.  
  641.  
  642. ##### Update trakt series list from local series folders, excluding the ones that already ended
  643. #
  644. update-series-list:
  645. priority: 41
  646. template:
  647. - disable-seen-retry
  648. - series-metainfo
  649. plugin_priority:
  650. if: -251
  651. manipulate: -252
  652. list_add: -253
  653. filesystem:
  654. path: '/{{secrets.folder.root}}{{secrets.folder.series}}'
  655. recursive: yes
  656. retrieve: files
  657. regexp: '.*\.(avi|mkv|mp4)$'
  658. manipulate:
  659. - series_season:
  660. remove: yes
  661. - series_episode:
  662. remove: yes
  663. accept_all: yes
  664. if:
  665. - tvdb_status == 'Ended': reject
  666. list_add:
  667. - trakt_list:
  668. account: '{{secrets.trakt.account}}'
  669. list: '{{secrets.trakt.series}}'
  670.  
  671.  
  672. ##### Clean the series that already ended from trakt series list
  673. #
  674. clean-series-list:
  675. priority: 43
  676. template:
  677. - disable-seen-retry
  678. - series-metainfo
  679. - pushbullet
  680. trakt_list:
  681. account: '{{secrets.trakt.account}}'
  682. list: '{{secrets.trakt.series}}'
  683. type: shows
  684. if:
  685. - tvdb_status == 'Ended': accept
  686. list_remove:
  687. - trakt_list:
  688. account: '{{secrets.trakt.account}}'
  689. list: '{{secrets.trakt.series}}'
Add Comment
Please, Sign In to add comment