Skip to content

Instantly share code, notes, and snippets.

View gazpachoking's full-sized avatar

Chase Sterling gazpachoking

View GitHub Profile
import logging
from BeautifulSoup import BeautifulSoup
from flexget.utils import requests
from flexget.entry import Entry
from flexget import plugin
from flexget.utils.cached_input import cached
log = logging.getLogger('pogdesign')
class InputPogDesign(object):
@gazpachoking
gazpachoking / gist:1700518
Created January 29, 2012 20:35
no ignore_case_property on series name
Index: flexget/plugins/cli/series.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- flexget/plugins/cli/series.py (revision 2688)
+++ flexget/plugins/cli/series.py (revision )
@@ -40,7 +40,7 @@
session = Session()
@gazpachoking
gazpachoking / gist:1699957
Created January 29, 2012 18:16
Adding some indexes to FlexGet db
Index: flexget/utils/simple_persistence.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- flexget/utils/simple_persistence.py (revision 2688)
+++ flexget/utils/simple_persistence.py (revision )
@@ -10,7 +10,7 @@
import logging
from datetime import datetime
@gazpachoking
gazpachoking / combine.py
Created October 10, 2011 03:32
Generic combining plugin (now added to repo as 'sequence')
import logging
from flexget.plugin import register_plugin, get_plugin_by_name, get_plugin_keywords, get_phases_by_plugin, phase_methods
log = logging.getLogger('combine')
class PluginCombine(object):
""" Allows the same plugin to be configured multiple times in a feed.
Example:
@gazpachoking
gazpachoking / gist:1061833
Created July 3, 2011 00:31
FlexGet yaml anchor/alias
tasks:
thedownload:
rss: http://feedhere
series: &serieslist
- showa
- showb
- showc
thesort:
find:
path: '/my/shows'
feeds:
enqueue_feed:
imdb_watchlist:
username: <imdbusername>
password: <imdbpassword>
queue_movies: yes
download_feed:
rss: http://feedhere
imdb_queue: yes
@gazpachoking
gazpachoking / movie_queue.py
Created May 21, 2011 20:29
queue_base / movie_queue
import logging
from optparse import OptionValueError
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.exc import OperationalError
from flexget.manager import Session
from flexget.utils import qualities
from flexget.utils.imdb import extract_id, ImdbSearch, ImdbParser
from flexget.utils.database import quality_synonym
from flexget.utils.tools import console, str_to_boolean
from flexget.plugin import DependencyError, PluginError, get_plugin_by_name, register_plugin, register_parser_option
regexp:
accept:
- the.{1,5}thing(?!=badstuff):
set:
unique_name: The Thing
seen: [unique_name]
feeds:
#1
x360:
rss: http://rss.torrentleech.org/7674c2153ddc94810a30
download: ~/Transferências/.torrents/
regexp:
accept:
- XBOX360
reject:
- NTSC
feeds:
#1
x360:
rss: http://rss.torrentleech.org/########################
download: ~/Transferências/.torrents/
regexp:
accept:
- XBOX360
reject:
- NTSC