id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7,900 | yifypopular.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/automation/yifypopular.py | import HTMLParser
from couchpotato import fireEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.media.movie.providers.automation.base import Automation
log = CPLog(__name__)
autoload = 'YTSPopular'
class YTSPopular(Automation):
interval = 1800
url = 'https://yts.lt/'
def getIMDBids... | 2,615 | Python | .py | 66 | 26.151515 | 108 | 0.502784 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,901 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/automation/trakt/__init__.py | from .main import Trakt
def autoload():
return Trakt()
config = [{
'name': 'trakt',
'groups': [
{
'tab': 'automation',
'list': 'watchlist_providers',
'name': 'trakt_automation',
'label': 'Trakt',
'description': 'Import movies from your ... | 1,088 | Python | .py | 34 | 17.705882 | 100 | 0.398095 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,902 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/automation/trakt/main.py | import json
import traceback
import time
from couchpotato import Env, fireEvent
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.variable import cleanHost
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.base import Pr... | 4,482 | Python | .py | 89 | 40.292135 | 118 | 0.624255 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,903 | hdtrailers.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/trailer/hdtrailers.py | from string import digits, ascii_letters
import re
from bs4 import SoupStrainer, BeautifulSoup
from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.helpers.variable import mergeDicts, getTitle, getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.media.movie.provide... | 4,275 | Python | .py | 92 | 34.684783 | 110 | 0.573838 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,904 | base.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/trailer/base.py | from couchpotato.core.event import addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.base import Provider
log = CPLog(__name__)
class TrailerProvider(Provider):
type = 'trailer'
def __init__(self):
addEvent('trailer.search', self.search)
def search(... | 357 | Python | .py | 10 | 31.3 | 64 | 0.730205 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,905 | omgwtfnzbs.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/nzb/omgwtfnzbs.py | from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.nzb.omgwtfnzbs import Base
from couchpotato.core.media.movie.providers.base import MovieProvider
log = CPLog(__name__)
autoload = 'OMGWTFNZBs'
class OMGWTFNZBs(MovieProvider, Base):
pass
| 281 | Python | .py | 7 | 38 | 70 | 0.825926 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,906 | nzbclub.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/nzb/nzbclub.py | from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.logger import CPLog
from couchpotato.core.event import fireEvent
from couchpotato.core.media._base.providers.nzb.nzbclub import Base
from couchpotato.core.media.movie.providers.base import MovieProvider
log = CPLog(__name__)
autoload = '... | 699 | Python | .py | 20 | 27.8 | 73 | 0.626488 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,907 | newznab.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/nzb/newznab.py | from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.helpers.variable import getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.nzb.newznab import Base
from couchpotato.core.media.movie.providers.base import MovieProvider
log = CPLog(__name__... | 862 | Python | .py | 20 | 35.85 | 69 | 0.645858 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,908 | binsearch.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/providers/nzb/binsearch.py | from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.helpers.variable import getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.nzb.binsearch import Base
from couchpotato.core.media.movie.providers.base import MovieProvider
from couchpotato.en... | 861 | Python | .py | 22 | 31.727273 | 69 | 0.651079 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,909 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/_base/main.py | import traceback
import time
from CodernityDB.database import RecordNotFound
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, fireEventAsync, addEvent
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import... | 13,170 | Python | .py | 272 | 34.525735 | 136 | 0.530063 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,910 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/charts/__init__.py | from .main import Charts
def autoload():
return Charts()
config = [{
'name': 'charts',
'groups': [
{
'label': 'Charts',
'description': 'Displays selected charts on the home page',
'type': 'list',
'name': 'charts_providers',
'tab': 'disp... | 374 | Python | .py | 16 | 15.625 | 71 | 0.468927 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,911 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/media/movie/charts/main.py | from CodernityDB.database import RecordNotFound
from couchpotato import Env, get_db
from couchpotato.core.helpers.variable import getTitle, splitString
from couchpotato.core.logger import CPLog
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent
from couchpotato.core.plugins.base import... | 2,589 | Python | .py | 63 | 27.507937 | 122 | 0.517365 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,912 | qbittorrent_.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/qbittorrent_.py | from base64 import b16encode, b32decode
from hashlib import sha1
from datetime import timedelta
import os
import re
from bencode import bencode, bdecode
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding import sp
from couchpotato.core.helpers.... | 9,887 | Python | .py | 220 | 30.8 | 168 | 0.531572 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,913 | transmission.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/transmission.py | from base64 import b64encode
from datetime import timedelta
import httplib
import json
import os.path
import re
import urllib2
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding import isInt, sp
from couchpotato.core.helpers.variable import try... | 15,941 | Python | .py | 325 | 35.769231 | 307 | 0.554484 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,914 | sabnzbd.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/sabnzbd.py | from datetime import timedelta
from urllib2 import URLError
import json
import os
import traceback
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding import tryUrlencode, ss, sp
from couchpotato.core.helpers.variable import cleanHost, mergeDict... | 10,823 | Python | .py | 265 | 27.132075 | 133 | 0.492581 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,915 | nzbvortex.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/nzbvortex.py | from base64 import b64encode
import os
from uuid import uuid4
import hashlib
import traceback
from requests import HTTPError
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding import tryUrlencode, sp
from couchpotato.core.helpers.variable impo... | 8,221 | Python | .py | 195 | 29.517949 | 145 | 0.533977 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,916 | nzbget.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/nzbget.py | from base64 import standard_b64encode
from datetime import timedelta
import re
import shutil
import socket
import traceback
import xmlrpclib
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding import ss, sp
from couchpotato.core.helpers.variable... | 12,457 | Python | .py | 272 | 31.893382 | 204 | 0.530769 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,917 | utorrent.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/utorrent.py | from base64 import b16encode, b32decode
from datetime import timedelta
from hashlib import sha1
import cookielib
import httplib
import json
import os
import re
import stat
import time
import urllib
import urllib2
from bencode import bencode as benc, bdecode
from couchpotato.core._base.downloader.main import Downloader... | 15,959 | Python | .py | 358 | 32.488827 | 157 | 0.558125 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,918 | synology.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/synology.py | import json
import traceback
from couchpotato.core._base.downloader.main import DownloaderBase
from couchpotato.core.helpers.encoding import isInt
from couchpotato.core.helpers.variable import cleanHost
from couchpotato.core.logger import CPLog
import requests
log = CPLog(__name__)
autoload = 'Synology'
class Syn... | 10,004 | Python | .py | 223 | 31.699552 | 166 | 0.532328 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,919 | pneumatic.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/pneumatic.py | from __future__ import with_statement
import os
import traceback
from couchpotato.core._base.downloader.main import DownloaderBase
from couchpotato.core.helpers.encoding import sp
from couchpotato.core.logger import CPLog
log = CPLog(__name__)
autoload = 'Pneumatic'
class Pneumatic(DownloaderBase):
protocol ... | 4,439 | Python | .py | 103 | 29.300971 | 144 | 0.527842 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,920 | deluge.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/deluge.py | from base64 import b64encode, b16encode, b32decode
from datetime import timedelta
from hashlib import sha1
import os.path
import re
import traceback
from bencode import bencode as benc, bdecode
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding... | 16,194 | Python | .py | 353 | 33.586402 | 512 | 0.56055 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,921 | blackhole.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/blackhole.py | from __future__ import with_statement
import os
import traceback
from couchpotato.core._base.downloader.main import DownloaderBase
from couchpotato.core.helpers.encoding import sp
from couchpotato.core.helpers.variable import getDownloadDir
from couchpotato.core.logger import CPLog
from couchpotato.environment import ... | 7,939 | Python | .py | 174 | 30.563218 | 174 | 0.512025 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,922 | rtorrent_.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/rtorrent_.py | from base64 import b16encode, b32decode
from datetime import timedelta
from hashlib import sha1
from urlparse import urlparse
import os
import re
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding imp... | 15,069 | Python | .py | 358 | 27.759777 | 141 | 0.508375 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,923 | hadouken.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/hadouken.py | from base64 import b16encode, b32decode, b64encode
from distutils.version import LooseVersion
from hashlib import sha1
import httplib
import json
import os
import re
import urllib2
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding import isInt... | 17,821 | Python | .py | 438 | 29.993151 | 126 | 0.572747 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,924 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/putio/__init__.py | from .main import PutIO
def autoload():
return PutIO()
config = [{
'name': 'putio',
'groups': [
{
'tab': 'downloaders',
'list': 'download_providers',
'name': 'putio',
'label': 'Put.io',
'description': 'This will start a torrent download... | 2,735 | Python | .py | 70 | 22.357143 | 149 | 0.405111 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,925 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/downloaders/putio/main.py | from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEventAsync
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.variable import cleanHost
from couchpotato.core.logger import CPLog
from couchpotato.environment import ... | 7,093 | Python | .py | 151 | 34.907285 | 122 | 0.578025 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,926 | desktop.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/desktop.py | from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.environment import Env
log = CPLog(__name__)
autoload = 'Desktop'
if Env.get('desktop'):
class Desktop(Plugin):
def __init__(self):
... | 1,018 | Python | .py | 27 | 28.259259 | 69 | 0.600613 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,927 | scheduler.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/scheduler.py | from apscheduler.scheduler import Scheduler as Sched
from couchpotato.core.event import addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
log = CPLog(__name__)
autoload = 'Scheduler'
class Scheduler(Plugin):
crons = {}
intervals = {}
started = False
... | 2,528 | Python | .py | 62 | 31.387097 | 122 | 0.585037 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,928 | clientscript.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/clientscript.py | import os
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.variable import tryInt
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.environment import Env
log = CPLog(__name__)
autoload = 'ClientScript'
class ClientScript(Plugin):
... | 1,500 | Python | .py | 39 | 30.128205 | 95 | 0.623701 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,929 | _core.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/_core.py | from uuid import uuid4
import os
import platform
import signal
import time
import traceback
import webbrowser
import sys
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.variable import cleanHost, md5, isSubFolder, compareVersions
from couchpot... | 13,193 | Python | .py | 318 | 28.144654 | 291 | 0.510142 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,930 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/downloader/__init__.py | from .main import Downloader
def autoload():
return Downloader()
config = [{
'name': 'download_providers',
'groups': [
{
'label': 'Downloaders',
'description': 'You can select different downloaders for each type (usenet / torrent)',
'type': 'list',
... | 433 | Python | .py | 16 | 19.3125 | 99 | 0.525424 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,931 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/downloader/main.py | from base64 import b32decode, b16encode
import random
import re
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.variable import mergeDicts
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.base import Provider
from cou... | 7,112 | Python | .py | 169 | 33.023669 | 139 | 0.624473 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,932 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/updater/__init__.py | import os
from .main import Updater
from couchpotato.environment import Env
def autoload():
return Updater()
config = [{
'name': 'updater',
'groups': [
{
'tab': 'general',
'name': 'updater',
'label': 'Updater',
'git_only': True,
'descri... | 1,296 | Python | .py | 42 | 16.809524 | 90 | 0.3856 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,933 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/_base/updater/main.py | import json
import os
import shutil
import tarfile
import time
import traceback
import zipfile
from datetime import datetime
from threading import RLock
import re
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent, fireEventAsync
from couchpotato.core.helpers.encoding import ... | 16,210 | Python | .py | 373 | 31.479893 | 195 | 0.563765 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,934 | request.py | CouchPotato_CouchPotatoServer/couchpotato/core/helpers/request.py | from urllib import unquote
import re
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import natsortKey
def getParams(params):
reg = re.compile('^[a-z0-9_\.]+$')
# Sort keys
param_keys = params.keys()
param_keys.sort(key = natsortKey)
temp = {}
... | 2,029 | Python | .py | 55 | 24.581818 | 90 | 0.498978 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,935 | encoding.py | CouchPotato_CouchPotatoServer/couchpotato/core/helpers/encoding.py | from string import ascii_letters, digits
from urllib import quote_plus
import os
import re
import traceback
import unicodedata
from chardet import detect
from couchpotato.core.logger import CPLog
import six
log = CPLog(__name__)
def toSafeString(original):
valid_chars = "-_.() %s%s" % (ascii_letters, digits)
... | 3,827 | Python | .py | 102 | 28.313725 | 110 | 0.579632 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,936 | rss.py | CouchPotato_CouchPotatoServer/couchpotato/core/helpers/rss.py | import xml.etree.ElementTree as XMLTree
from couchpotato.core.logger import CPLog
log = CPLog(__name__)
class RSS(object):
def getTextElements(self, xml, path):
""" Find elements and return tree"""
textelements = []
try:
elements = xml.findall(path)
except:
... | 1,177 | Python | .py | 39 | 20.897436 | 52 | 0.569012 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,937 | variable.py | CouchPotato_CouchPotatoServer/couchpotato/core/helpers/variable.py | import collections
import ctypes
import hashlib
import os
import platform
import random
import re
import string
import sys
import traceback
from couchpotato.core.helpers.encoding import simplifyString, toSafeString, ss, sp, toUnicode
from couchpotato.core.logger import CPLog
import six
from six.moves import map, zip, ... | 11,559 | Python | .py | 295 | 31.013559 | 155 | 0.598294 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,938 | subtitle.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/subtitle.py | import traceback
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import toUnicode, sp
from couchpotato.core.helpers.variable import splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.environment import Env
import su... | 3,012 | Python | .py | 68 | 32.147059 | 212 | 0.55434 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,939 | browser_test.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/browser_test.py | #import sys
import os
import mock
import unittest
from unittest import TestCase
from couchpotato.core.plugins.browser import FileBrowser
from couchpotato.core.softchroot import SoftChroot
CHROOT_DIR = '/tmp/'
# 'couchpotato.core.plugins.browser.Env',
@mock.patch('couchpotato.core.plugins.browser.Env', name='EnvM... | 1,416 | Python | .py | 36 | 31.861111 | 92 | 0.617302 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,940 | browser.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/browser.py | import ctypes
import os
import string
import traceback
import time
from couchpotato import CPLog
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import sp, ss, toUnicode
from couchpotato.core.helpers.variable import getUserDir
from couchpotato.c... | 4,716 | Python | .py | 118 | 30.491525 | 154 | 0.590829 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,941 | file.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/file.py | import os.path
import traceback
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.encoding import toUnicode, ss, sp
from couchpotato.core.helpers.variable import md5, getExt, isSubFolder
from couchpotato.core.logge... | 3,976 | Python | .py | 87 | 35.321839 | 147 | 0.571355 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,942 | renamer.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/renamer.py | import fnmatch
import os
import re
import shutil
import time
import traceback
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent, fireEventAsync
from couchpotato.core.helpers.encoding import toUnicode, ss, sp
from couchpotato.core.helpers.variab... | 75,457 | Python | .py | 1,297 | 40.203547 | 324 | 0.518472 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,943 | trailer.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/trailer.py | import os
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.variable import getExt, getTitle
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
log = CPLog(__name__)
autoload = 'Trailer'
class Trailer(Plugin):
def __init__(self):
... | 2,719 | Python | .py | 64 | 29.859375 | 166 | 0.514968 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,944 | dashboard.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/dashboard.py | import random as rndm
import time
from CodernityDB.database import RecordDeleted, RecordNotFound
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent
from couchpotato.core.helpers.variable import splitString, tryInt
from couchpotato.core.logger import CPLog... | 4,048 | Python | .py | 84 | 33.428571 | 136 | 0.532553 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,945 | base.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/base.py | import threading
from urllib import quote, getproxies
from urlparse import urlparse
import os.path
import time
import traceback
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.encoding import ss, toSafeString, \
toUnicode, sp
from couchpotato.core.helpers.variable import md5, i... | 15,483 | Python | .py | 339 | 33.566372 | 136 | 0.558497 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,946 | automation.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/automation.py | from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.environment import Env
log = CPLog(__name__)
autoload = 'Automation'
class Automation(Plugin):
def __init__(s... | 3,770 | Python | .py | 95 | 26.042105 | 183 | 0.488232 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,947 | custom.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/custom.py | import os
from couchpotato.core.event import addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.environment import Env
log = CPLog(__name__)
autoload = 'Custom'
class Custom(Plugin):
def __init__(self):
addEvent('app.load', self.create... | 615 | Python | .py | 15 | 35.6 | 97 | 0.705085 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,948 | scanner.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/scanner.py | import os
import re
import threading
import time
import traceback
from couchpotato import get_db
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.encoding import toUnicode, simplifyString, sp, ss
from couchpotato.core.helpers.variable import getExt, getImdb, tryInt, \
splitStrin... | 37,247 | Python | .py | 763 | 35.72346 | 386 | 0.539161 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,949 | manage.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/manage.py | import os
import time
import traceback
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent, fireEventAsync
from couchpotato.core.helpers.encoding import sp
from couchpotato.core.helpers.variable import splitString, getTitle, tryInt, getIdentifier... | 12,274 | Python | .py | 247 | 33.603239 | 178 | 0.517821 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,950 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/wizard/__init__.py | from .main import Wizard
def autoload():
return Wizard()
config = [{
'name': 'core',
'groups': [
{
'tab': 'general',
'name': 'advanced',
'options': [
{
'name': 'show_wizard',
'label': 'Run the wizard',
... | 442 | Python | .py | 20 | 11.35 | 46 | 0.331742 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,951 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/wizard/main.py | from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
log = CPLog(__name__)
class Wizard(Plugin):
pass
| 147 | Python | .py | 5 | 27 | 48 | 0.798561 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,952 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/userscript/main.py | import os
import traceback
import time
from base64 import b64encode, b64decode
from couchpotato import index
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.variable import isDict
from couchpotato.core.logger import CPLog
from couchpotato.core... | 5,591 | Python | .py | 106 | 41.849057 | 187 | 0.658957 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,953 | scores.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/score/scores.py | import re
import traceback
from couchpotato.core.event import fireEvent
from couchpotato.core.helpers.encoding import simplifyString
from couchpotato.core.helpers.variable import tryInt
from couchpotato.core.logger import CPLog
from couchpotato.environment import Env
log = CPLog(__name__)
name_scores = [
# Tag... | 6,753 | Python | .py | 165 | 32.624242 | 154 | 0.580408 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,954 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/score/main.py | from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import getTitle, splitString, removeDuplicate
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.core.plugins.score.scores i... | 2,494 | Python | .py | 50 | 41.4 | 117 | 0.66488 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,955 | index.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/category/index.py | from CodernityDB.tree_index import TreeBasedIndex
class CategoryIndex(TreeBasedIndex):
_version = 1
def __init__(self, *args, **kwargs):
kwargs['key_format'] = 'i'
super(CategoryIndex, self).__init__(*args, **kwargs)
def make_key(self, key):
return key
def make_key_value(sel... | 836 | Python | .py | 21 | 32.619048 | 65 | 0.608696 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,956 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/category/main.py | import traceback
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from .index import CategoryIndex, Categor... | 3,963 | Python | .py | 114 | 23.026316 | 100 | 0.501442 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,957 | index.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/release/index.py | from hashlib import md5
from CodernityDB.hash_index import HashIndex
from CodernityDB.tree_index import TreeBasedIndex
class ReleaseIndex(TreeBasedIndex):
_version = 1
def __init__(self, *args, **kwargs):
kwargs['key_format'] = '32s'
super(ReleaseIndex, self).__init__(*args, **kwargs)
d... | 2,015 | Python | .py | 43 | 39.790698 | 141 | 0.619682 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,958 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/release/main.py | from inspect import ismethod, isfunction
import os
import time
import traceback
from CodernityDB.database import RecordDeleted, RecordNotFound
from couchpotato import md5, get_db
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.encoding import ... | 20,736 | Python | .py | 435 | 33.177011 | 156 | 0.519536 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,959 | index.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/profile/index.py | from CodernityDB.tree_index import TreeBasedIndex
class ProfileIndex(TreeBasedIndex):
_version = 1
def __init__(self, *args, **kwargs):
kwargs['key_format'] = 'i'
super(ProfileIndex, self).__init__(*args, **kwargs)
def make_key(self, key):
return key
def make_key_value(self,... | 415 | Python | .py | 11 | 30.818182 | 59 | 0.614035 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,960 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/profile/main.py | import traceback
from couchpotato import get_db, tryInt
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from .index import Pro... | 7,558 | Python | .py | 201 | 24.283582 | 98 | 0.464731 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,961 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/log/main.py | import os
import re
import traceback
from couchpotato.api import addApiView
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import tryInt, splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.environment i... | 5,403 | Python | .py | 152 | 23.815789 | 110 | 0.469662 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,962 | index.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/quality/index.py | from hashlib import md5
from CodernityDB.hash_index import HashIndex
class QualityIndex(HashIndex):
_version = 1
def __init__(self, *args, **kwargs):
kwargs['key_format'] = '32s'
super(QualityIndex, self).__init__(*args, **kwargs)
def make_key(self, key):
return md5(key).hexdige... | 494 | Python | .py | 12 | 34.666667 | 66 | 0.638655 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,963 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/plugins/quality/main.py | from math import fabs, ceil
import traceback
import re
from CodernityDB.database import RecordNotFound
from couchpotato import get_db
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.encoding import toUnicode, ss
from couchpotato.core.helpers.v... | 25,108 | Python | .py | 422 | 46.744076 | 281 | 0.548844 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,964 | slack.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/slack.py | import json
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Slack'
class Slack(Notification):
url = 'https://slack.com/api/chat.postMessage'
required_confs = ('token', 'channels',)
def notify(self, message='', data=... | 4,503 | Python | .py | 116 | 22.336207 | 79 | 0.419694 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,965 | growl.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/growl.py | import traceback
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
from couchpotato.environment import Env
from gntp import notifier
log = CPLog(__name__)
autoload = 'Growl'
class Growl(Notification):
... | 3,163 | Python | .py | 93 | 20.88172 | 81 | 0.471148 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,966 | webhook.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/webhook.py | import traceback
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Webhook'
class Webhook(Notification):
de... | 1,813 | Python | .py | 55 | 21.327273 | 99 | 0.496275 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,967 | email_.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/email_.py | from email.mime.text import MIMEText
from email.utils import formatdate, make_msgid
import smtplib
import traceback
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import... | 4,482 | Python | .py | 117 | 24.65812 | 140 | 0.474568 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,968 | pushover.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/pushover.py | from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import getTitle, getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Pushover'
class Pushover(Notification):
api_url... | 2,903 | Python | .py | 75 | 24.84 | 148 | 0.462877 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,969 | nmj.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/nmj.py | import re
import telnetlib
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
try:
import xml.etree.cElementTree as etr... | 4,379 | Python | .py | 125 | 24.232 | 109 | 0.530651 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,970 | telegrambot.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/telegrambot.py | from couchpotato.core.helpers.variable import getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
import requests
import six
log = CPLog(__name__)
autoload = 'TelegramBot'
class TelegramBot(Notification):
TELEGRAM_API = "https://api.telegram.org/b... | 2,720 | Python | .py | 65 | 29.876923 | 209 | 0.535201 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,971 | synoindex.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/synoindex.py | import os
import subprocess
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Synoindex'
class Synoindex(Notification):
index_path = '/usr/... | 1,650 | Python | .py | 48 | 25.395833 | 95 | 0.57782 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,972 | trakt.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/trakt.py | from couchpotato.core.helpers.variable import getTitle, getIdentifier
from couchpotato.core.logger import CPLog
from couchpotato.core.media.movie.providers.automation.trakt.main import TraktBase
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Trakt'
class Trakt(Notific... | 1,950 | Python | .py | 52 | 26.596154 | 155 | 0.535847 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,973 | boxcar2.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/boxcar2.py | from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Boxcar2'
class Boxcar2(Notification):
url = 'https://new.boxcar.io/api/notifications'
LOGO_URL = 'https://raw.gith... | 2,405 | Python | .py | 60 | 27.716667 | 136 | 0.522523 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,974 | prowl.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/prowl.py | import traceback
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Prowl'
class Prowl(Notification):
urls = {
'api': 'https://api.prowlapp.com/publicapi/add'
... | 2,047 | Python | .py | 62 | 20.709677 | 112 | 0.449797 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,975 | androidpn.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/androidpn.py | import traceback
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'AndroidPN'
class AndroidPN(Notification):
def notify(self, message = '', data = None, listener = No... | 2,293 | Python | .py | 68 | 20.352941 | 94 | 0.444846 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,976 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/__init__.py | config = [{
'name': 'notification_providers',
'groups': [
{
'label': 'Notifications',
'description': 'Notify when movies are done or snatched',
'type': 'list',
'name': 'notification_providers',
'tab': 'notifications',
'options': [],... | 342 | Python | .py | 13 | 17.615385 | 69 | 0.471125 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,977 | pushalot.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/pushalot.py | import traceback
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Pushalot'
class Pushalot(Notification):
urls = {
'api': 'https://pushalot.com/api/sendmessa... | 2,534 | Python | .py | 73 | 21.520548 | 94 | 0.456886 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,978 | script.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/script.py | import traceback
import subprocess
import os
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import getIdentifier
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.notificatio... | 1,805 | Python | .py | 54 | 24.092593 | 95 | 0.564767 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,979 | homey.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/homey.py | import traceback
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import getIdentifier, getTitle
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Homey'
class Homey(Notification):
... | 1,700 | Python | .py | 51 | 23.215686 | 162 | 0.530562 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,980 | base.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/base.py | from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.base import Provider
from couchpotato.environment import Env
log = CPLog(__name__)
class Notification(Provider):
type = 'notification'
def... | 2,154 | Python | .py | 52 | 33.096154 | 129 | 0.631427 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,981 | discord.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/discord.py | from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
import json
import requests
log = CPLog(__name__)
autoload = 'Discord'
class Discord(Notification):
required_confs = ('webhook_url',)
def notify(self, message='', data=None, listener=None):
for key... | 3,219 | Python | .py | 84 | 23.27381 | 210 | 0.450096 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,982 | pushbullet.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/pushbullet.py | from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Pushbullet'
class Pushbullet(Notification):
url = 'https://... | 3,391 | Python | .py | 92 | 23.380435 | 135 | 0.483074 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,983 | join.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/join.py | from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.helpers.variable import splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Join'
... | 2,722 | Python | .py | 68 | 27.970588 | 141 | 0.537908 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,984 | notifymyandroid.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/notifymyandroid.py | from couchpotato.core.helpers.variable import splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
import pynma
import six
log = CPLog(__name__)
autoload = 'NotifyMyAndroid'
class NotifyMyAndroid(Notification):
def notify(self, message = '', data = ... | 2,345 | Python | .py | 67 | 22.19403 | 117 | 0.458315 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,985 | toasty.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/toasty.py | import traceback
from couchpotato.core.helpers.encoding import toUnicode, tryUrlencode
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Toasty'
class Toasty(Notification):
urls = {
'api': 'http://api.supertoasty.c... | 1,741 | Python | .py | 52 | 21.923077 | 124 | 0.48926 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,986 | xbmc.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/xbmc.py | import base64
import json
import socket
import traceback
import urllib
from couchpotato.core.helpers.variable import splitString, getTitle
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
from requests.exceptions import ConnectionError, Timeout
from requests.packag... | 11,024 | Python | .py | 229 | 33.467249 | 186 | 0.506236 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,987 | xmpp_.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/xmpp_.py | from time import sleep
import traceback
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
import xmpp
log = CPLog(__name__)
autoload = 'Xmpp'
class Xmpp(Notification):
def notify(self, message = '', data = None, listener = None):
if not data: data ... | 2,910 | Python | .py | 79 | 23.012658 | 132 | 0.463042 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,988 | emby.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/emby.py | import json
import urllib, urllib2
from couchpotato.core.helpers.variable import cleanHost
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Emby'
class Emby(Notification):
def notify(self, message = '', data = None, liste... | 2,483 | Python | .py | 71 | 23.633803 | 199 | 0.519215 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,989 | client.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/plex/client.py | import json
from couchpotato import CPLog
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import tryUrlencode
import requests
log = CPLog(__name__)
class PlexClientProtocol(object):
def __init__(self, plex):
self.plex = plex
addEvent('notify.plex.notifyClient... | 2,238 | Python | .py | 64 | 25.734375 | 90 | 0.575081 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,990 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/plex/__init__.py | from .main import Plex
def autoload():
return Plex()
config = [{
'name': 'plex',
'groups': [
{
'tab': 'notifications',
'list': 'notification_providers',
'name': 'plex',
'options': [
{
'name': 'enabled',
... | 2,434 | Python | .py | 71 | 17.183099 | 124 | 0.346186 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,991 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/plex/main.py | from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
from .client import PlexClientHTTP, PlexClientJSON
from .server import PlexServer
log = CPLog(__name__)
class Plex(Notification):
http_time_between_calls ... | 2,356 | Python | .py | 54 | 33.203704 | 108 | 0.610184 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,992 | server.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/plex/server.py | from datetime import timedelta, datetime
from urlparse import urlparse
import traceback
from couchpotato.core.helpers.variable import cleanHost
from couchpotato import CPLog
try:
import xml.etree.cElementTree as etree
except ImportError:
import xml.etree.ElementTree as etree
log = CPLog(__name__)
class Pl... | 5,347 | Python | .py | 115 | 34.313043 | 149 | 0.570246 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,993 | index.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/core/index.py | from CodernityDB.tree_index import TreeBasedIndex
class NotificationIndex(TreeBasedIndex):
_version = 1
custom_header = """from CodernityDB.tree_index import TreeBasedIndex
import time"""
def __init__(self, *args, **kwargs):
kwargs['key_format'] = 'I'
super(NotificationIndex, self).__ini... | 1,015 | Python | .py | 25 | 34 | 72 | 0.645194 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,994 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/core/main.py | from operator import itemgetter
import threading
import time
import traceback
import uuid
from CodernityDB.database import RecordDeleted
from couchpotato import get_db
from couchpotato.api import addApiView, addNonBlockApiView
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.encodin... | 8,645 | Python | .py | 216 | 29.189815 | 131 | 0.56001 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,995 | __init__.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/twitter/__init__.py | from .main import Twitter
def autoload():
return Twitter()
config = [{
'name': 'twitter',
'groups': [
{
'tab': 'notifications',
'list': 'notification_providers',
'name': 'twitter',
'options': [
{
'name': 'enabled'... | 1,547 | Python | .py | 50 | 15.16 | 118 | 0.338688 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,996 | main.py | CouchPotato_CouchPotatoServer/couchpotato/core/notifications/twitter/main.py | from urlparse import parse_qsl
from couchpotato.api import addApiView
from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.helpers.variable import cleanHost
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
from couchpotato.environment im... | 5,012 | Python | .py | 92 | 43.271739 | 129 | 0.606873 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,997 | scrollspy.js | CouchPotato_CouchPotatoServer/couchpotato/static/scripts/library/scrollspy.js | /*
---
description: ScrollSpy
authors:
- David Walsh (http://davidwalsh.name)
license:
- MIT-style license
requires:
core/1.2.1: '*'
provides:
- ScrollSpy
...
*/
var ScrollSpy = new Class({
/* implements */
Implements: [Options,Events],
/* options */
options: {
container: window,
max: 0,
m... | 2,035 | Python | .py | 80 | 22.0625 | 89 | 0.638517 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,998 | scgi.py | CouchPotato_CouchPotatoServer/libs/rtorrent/lib/xmlrpc/clients/scgi.py | #!/usr/bin/python
# rtorrent_xmlrpc
# (c) 2011 Roger Que <alerante@bellsouth.net>
#
# Modified portions:
# (c) 2013 Dean Gardiner <gardiner91@gmail.com>
#
# Python module for interacting with rtorrent's XML-RPC interface
# directly over SCGI, instead of through an HTTP server intermediary.
# Inspired by Glenn Washburn... | 5,670 | Python | .cgi | 134 | 37.865672 | 79 | 0.707503 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |
7,999 | scgi.py | CouchPotato_CouchPotatoServer/libs/rtorrent/lib/xmlrpc/transports/scgi.py | #!/usr/bin/python
# rtorrent_xmlrpc
# (c) 2011 Roger Que <alerante@bellsouth.net>
#
# Modified portions:
# (c) 2013 Dean Gardiner <gardiner91@gmail.com>
#
# Python module for interacting with rtorrent's XML-RPC interface
# directly over SCGI, instead of through an HTTP server intermediary.
# Inspired by Glenn Washburn... | 5,943 | Python | .cgi | 139 | 37.064748 | 91 | 0.686247 | CouchPotato/CouchPotatoServer | 3,869 | 1,214 | 1,266 | GPL-3.0 | 9/5/2024, 5:10:17 PM (Europe/Amsterdam) |