Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master cpasbien.py #22

Open
wants to merge 3,662 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3662 commits
Select commit Hold shift + click to select a range
79aad62
Merge pull request #7124 from jcak/patch-1
RuudBurger Nov 12, 2016
bdd7f21
Merge pull request #7123 from razorloves/develop
RuudBurger Nov 12, 2016
84e7bbf
Add notifiter for Join by joaoapps
Nov 14, 2016
8d13db2
Fix for some crashes in automation
Nov 14, 2016
382c2a3
Merge pull request #6184 from jvandenbroek/develop
RuudBurger Nov 14, 2016
b9924c0
Merge pull request #7097 from thetownfool/master
RuudBurger Nov 7, 2016
6fd1b61
Merge pull request #7081 from jpartain89/patch-1
RuudBurger Nov 7, 2016
4057790
Merge branch 'develop'
RuudBurger Nov 15, 2016
6aa9b11
V0 rewriting T411 using api
Nov 15, 2016
d863627
Ajout du français dans les options du Renamer
Nov 17, 2016
bd801b3
File names that has a : in position 1 makes guessit split_path to inf…
etomm Nov 22, 2016
c4d0cb1
Pulled new API from PUTIO
dumaresq Nov 23, 2016
fdea237
Added https variable
dumaresq Nov 23, 2016
4bc0e2c
Allow setting callbackurl to https
dumaresq Nov 23, 2016
5b659f8
Add year to search param for torrentpotato
sweco-secfha Nov 26, 2016
17ab256
Fix BeautifulSoup find_all parsing
RedsGT Dec 4, 2016
78a4749
PassThePopcorn URL update to prevent API 403 error
lattedesu Dec 5, 2016
ecec0db
Merge pull request #7136 from sweco-secfha/torrentpotato_search_year
RuudBurger Dec 5, 2016
02ab82c
Removed changing of global uTorrent settings.
thijstijsma Dec 6, 2016
91d7280
Fix Transmission not reading correct status
fernandog Dec 6, 2016
d516182
Correct Emby API Call for Movies update
DaftHonk Dec 9, 2016
57cc63d
Updated TorrentLeech provider for new site version
whitter Dec 14, 2016
1e15208
Merge pull request #7137 from RedsGT/patch-1
RuudBurger Dec 17, 2016
eff1d1f
Merge pull request #7138 from lattedesu/patch-1
RuudBurger Dec 17, 2016
fbf0672
Merge pull request #7139 from thijstijsma/develop
RuudBurger Dec 17, 2016
0cdfb47
Merge pull request #7144 from DaftHonk/develop
RuudBurger Dec 17, 2016
90c4432
Merge pull request #7147 from whitter/develop
RuudBurger Dec 17, 2016
e13afd0
Merge pull request #7133 from dumaresq/develop
RuudBurger Dec 17, 2016
dfd3682
Indent fix
RuudBurger Dec 17, 2016
093be5d
Merge pull request #7131 from etomm/develop
RuudBurger Dec 17, 2016
9ba8cbe
PutIO needs tus lib
RuudBurger Dec 17, 2016
6be3e0f
Don't try to remove language from themoviedb if it isn't in the list
RuudBurger Dec 17, 2016
42dcd35
Value -1 for quality counts as not selected
RuudBurger Dec 17, 2016
d8a555c
Fix broken profiles with empty qualities
RuudBurger Dec 17, 2016
07b6c32
Merge pull request #7125 from hborawski/join
RuudBurger Dec 17, 2016
9d13472
merge from source + ptp url fix
cyberden Dec 17, 2016
e29c80c
Merge pull request #6947 from peerster/update-README
RuudBurger Dec 18, 2016
b538f9a
Merge branch 'develop'
RuudBurger Dec 21, 2016
8205f1d
url t411
Dec 22, 2016
b8e0714
New Kickass torrent proxies
PeterVanco Dec 25, 2016
e02a3b9
Merge pull request #7152 from PeterVanco/patch-1
RuudBurger Dec 26, 2016
9049e3b
Remove kat.cr and fix trailing slash
jamesmacwhite Dec 30, 2016
840ef03
Update nzbclub.py
reputo Dec 30, 2016
b0d9a3c
Ajout xthor
Jan 3, 2017
e5fc150
IPTorrents query fixes - From PR #7023
kmr2319 Jan 3, 2017
78363cb
Add 2160p support to PTP provider
fenduru Jan 4, 2017
3820515
Set autofocus to the username input field
ekohl Jan 8, 2017
c170571
Ignore UTF-8 decode errors
lewang Jan 10, 2017
7ba6904
Add option to configure search categories for Newznab providers
jwvanderbeck Jan 10, 2017
934af86
fixes UnicodeEncodeError for automation scripts
Jan 15, 2017
44672bd
Merge pull request #7158 from kmr2319/develop
RuudBurger Jan 17, 2017
8ec7787
Merge pull request #7159 from fenduru/ptp-2160p
RuudBurger Jan 17, 2017
a0a7702
Merge pull request #7160 from ekohl/autofocus
RuudBurger Jan 17, 2017
e3b0672
KAT Proxies
RuudBurger Jan 17, 2017
29df304
Merge pull request #7163 from lewang/patch-2
RuudBurger Jan 17, 2017
c73a37b
Read param isFinished because otherwise torrent can be paused but see…
fernandog Jan 20, 2017
0bed4f1
Merge pull request #1 from CouchPotato/develop
jwvanderbeck Jan 22, 2017
a1e6418
Add 3d_type_short and TAB option for Kodi compatability
jwvanderbeck Jan 22, 2017
18a4f0a
Add TAB detection to the original OU keywords.
jwvanderbeck Jan 22, 2017
fae67ae
FIX: Only apply 3D operations if metadata exists
jwvanderbeck Jan 25, 2017
a2ebe5b
Update deluge.py
yigit007 Jan 30, 2017
7a58f56
Correction parsing abn
cyberden Feb 1, 2017
75e6e9d
Added notification option to execute script.
Fmstrat Feb 2, 2017
750f2bc
Discord Notification Support
Mhynlo Feb 5, 2017
cde53c2
Fixes instances were getQuality returns null instead of empty object
ktiedt Feb 9, 2017
abe3ed5
Extend ignore patterns
kumy Feb 11, 2017
c2b44a3
Ignore a set of configured patterns during rename.
offbyone Feb 13, 2017
8b27e3c
discord notification tts support
Mhynlo Feb 17, 2017
dba0714
Ajout Torrent 9 et option pour le choix de la langue (#8)
Foncekar Feb 19, 2017
4207bcc
Merge remote-tracking branch 'refs/remotes/origin/develop'
cyberden Feb 19, 2017
7b13d4e
Update torrent9.py (#9)
Foncekar Feb 21, 2017
a603626
Update torrent9.py (#9) (#10)
cyberden Feb 21, 2017
78a48e0
T411 html & api (#11)
Foncekar Feb 21, 2017
355ca50
411 api & html (#12)
cyberden Feb 21, 2017
85b6333
Merge from source repo
Feb 23, 2017
b352abe
Fix a bug in quality.single that led to exceptions
offbyone Feb 25, 2017
4f76cf5
Added YTS Provider
Swkgram Feb 27, 2017
476eb8d
Merge pull request #7157 from reputo/patch-1
RuudBurger Mar 1, 2017
6158bc3
Merge pull request #7168 from jwvanderbeck/3d_options
RuudBurger Mar 1, 2017
4e16c06
Merge pull request #7186 from Swkgram/yts-provider-720p-1080p
RuudBurger Mar 1, 2017
b582a8f
Merge pull request #7174 from yigit007/develop
RuudBurger Mar 1, 2017
3f5f021
Merge pull request #7177 from Fmstrat/develop
RuudBurger Mar 1, 2017
bcb9859
Merge pull request #7178 from Mhynlo/develop
RuudBurger Mar 1, 2017
d4e4548
Merge pull request #7179 from ktiedt/QualityPluginFix
RuudBurger Mar 1, 2017
d688f0a
Merge pull request #7181 from offbyone/feature-ignore-during-rename
RuudBurger Mar 1, 2017
62afcb4
Merge pull request #7184 from offbyone/bugfix-traceback-on-recordnotf…
RuudBurger Mar 1, 2017
1a8c78b
Add Plex device name
RuudBurger Mar 1, 2017
456369e
Update README - fixed link
Swkgram Mar 1, 2017
8a776f7
Petites corrections pour torrent9
Mar 2, 2017
b05ede3
Merge corrections torrent9
Mar 2, 2017
117dac0
sln
Mar 2, 2017
6ca0efe
fixed bug where yts would add Avatar (2009) when searching for Avatar…
Swkgram Mar 4, 2017
0a2d8f8
increased limit in the API call to be sure that the result is found.
Swkgram Mar 4, 2017
9e6fa8a
fixed name check - it was too narrow.
Swkgram Mar 4, 2017
23ef661
movie name was too simple - used original title.
Swkgram Mar 4, 2017
a626789
increased limit - sometimes long film series like Star Wars puts the …
Swkgram Mar 4, 2017
5391372
forgot to split name - working/fixed now.
Swkgram Mar 4, 2017
9f492ad
fixed wonder woman 2009/2017 release confusion.
Swkgram Mar 9, 2017
b87c3f4
fixed key error exception
Swkgram Mar 9, 2017
50d3a5b
changed log type when not getting any results
Swkgram Mar 9, 2017
a340655
Clean TPB proxy list
jamesmacwhite Dec 30, 2016
0ae14dc
Ajout provider (#13)
Foncekar Mar 23, 2017
1091585
Ajout provider (#13) (#14)
cyberden Mar 23, 2017
c497b23
Update nextorrent.py (#15)
Foncekar Mar 24, 2017
ffbeca4
Merge pull request #7189 from Swkgram/yts-provider-720p-1080p
RuudBurger Mar 27, 2017
70ae697
Merge pull request #7187 from Swkgram/readme-link-fix
RuudBurger Mar 27, 2017
97aedad
Merge pull request #7180 from kumy/develop
RuudBurger Mar 27, 2017
3a956b3
Merge branch 'develop' into unicode-decode-error-fix
RuudBurger Mar 27, 2017
0d9bbee
Merge pull request #7166 from jlehker/unicode-decode-error-fix
RuudBurger Mar 27, 2017
711310d
Merge branch 'develop'
RuudBurger Mar 27, 2017
6a28ed6
Merge pull request #7156 from jamesmacwhite/kat-proxy-cleanup
RuudBurger Mar 27, 2017
eac3322
Merge pull request #7164 from jwvanderbeck/NewzNabCategories
RuudBurger Mar 27, 2017
c66cee0
Merge pull request #7155 from jamesmacwhite/tpb-proxy-cleanup
RuudBurger Mar 27, 2017
5bddcec
Update T411 URL (#16)
albatorsssx Mar 28, 2017
b23cf10
Update nextorrent.py (#19)
Foncekar Mar 28, 2017
b3f02e9
Update nextorrent.py (#15)
Foncekar Mar 24, 2017
1aeb3c5
Merge branch 'master' into develop
Mar 28, 2017
67457d4
Corrections xthor + nom config nextorrent
Mar 28, 2017
b5f16f3
Merge branch 'develop' of https://github.com/cyberden/CouchPotatoServ…
Mar 28, 2017
0435270
Merge branch 'master' into develop
Mar 28, 2017
8c8d74f
OmdbApi Fix
TheQwertiest Apr 2, 2017
3391516
Merge pull request #7193 from TheQwertiest/develop
RuudBurger Apr 7, 2017
2086d9a
Changed where to look for matches for Bit-HDTV due to site changes ht…
fiLLLip Apr 13, 2017
04688dd
Added support for the Hebrew subtitles website - TheWiz.
ofir123 Apr 22, 2017
f1b9937
SubsCenter service now supports the new API.
ofir123 Apr 22, 2017
48e9b20
Merge pull request #7197 from fiLLLip/develop
RuudBurger May 4, 2017
de927b3
Merge pull request #7200 from ofir123/feature/thewiz-support
RuudBurger May 4, 2017
0176b0d
Merge pull request #7201 from ofir123/hotfix/subscenter-fix
RuudBurger May 4, 2017
0686343
Fix letterboxd integration
pindab0ter May 4, 2017
5ba6901
Support multiple watchlist pages for Letterboxd
pindab0ter May 4, 2017
32fdf53
Support watchlist with more than 5 pages
pindab0ter May 4, 2017
e4c52e7
Update t411.py (#20)
Foncekar May 9, 2017
e4546bf
T411 URL
cyberden May 9, 2017
271135c
Merge remote-tracking branch 'refs/remotes/origin/develop'
cyberden May 9, 2017
714a942
Updated script notification to use Popen instead of call.
Fmstrat May 11, 2017
09c749a
Merge pull request #7204 from Fmstrat/develop
RuudBurger May 21, 2017
8b7934e
Use IMDb codes for search and comparison
May 25, 2017
f0d7edd
Merge pull request #7208 from jbarr13/develop
RuudBurger May 29, 2017
ec42591
Merge branch 'develop'
RuudBurger May 29, 2017
1d73760
Prevent removal of download if disk is full.
Jun 1, 2017
30a5296
OMDB changed api. closes #7214
RuudBurger Jun 10, 2017
05b7cab
Merge branch 'develop'
RuudBurger Jun 10, 2017
9efc94f
Remove automations that do not work anymore
DieBauer Jun 10, 2017
e38333d
torrentday has depcreated the classic URL
jshapiro26 Jun 14, 2017
9f1124b
Update omdbapi.py
ThisIsAreku Jun 20, 2017
5037dea
Merge pull request #7221 from ThisIsAreku/patch-1
RuudBurger Jun 26, 2017
a702c90
Merge branch 'develop'
RuudBurger Jun 26, 2017
8c5a8fa
Merge pull request #7220 from jshapiro26/develop
RuudBurger Jun 26, 2017
a56d1f6
Merge pull request #7216 from DieBauer/drop-notworking-automations
RuudBurger Jun 26, 2017
ad9679c
Merge pull request #7211 from QuasimodoNZ/patch-2
RuudBurger Jun 26, 2017
0a97ed5
Merge branch 'develop'
RuudBurger Jun 26, 2017
b59e6ba
Rtorrent api changes
RuudBurger Jun 26, 2017
b9a3d2c
Update torrent9.py (#22)
zobi Jul 1, 2017
e7af70e
Update cpasbien.py (#23)
zobi Jul 1, 2017
5a00084
Merge branch 'master' into develop
cyberden Jul 1, 2017
4758dca
Merge from main repo
cyberden Jul 1, 2017
6dc7c58
Tiny fix for Subscenter new URL.
ofir123 Jul 2, 2017
9c9dc32
Switched from thewiz to wizdom.
ofir123 Jul 2, 2017
8b802f9
TMDB API key fix.
ofir123 Jul 7, 2017
373615a
Master (#25)
albatorsssx Jul 7, 2017
a6dc256
Fixed filmstarts.de provider
softcat Jul 12, 2017
c1b15c4
Update Binnews search (#26)
albatorsssx Jul 16, 2017
492dce9
Ajout log renamer
cyberden Jul 19, 2017
559640b
Don't crash when languages not set
cyberden Jul 19, 2017
b31009f
Implement the patch from freebsd located at https://raw.githubusercon…
mvn23 Jul 20, 2017
6adf56b
More sane URL for information on contribution. Also, Github issues sh…
Jul 21, 2017
f1c94af
Merge pull request #7229 from skaramicke/develop
RuudBurger Jul 24, 2017
8e8db25
Merge pull request #7227 from mvn23/xmpp-ssl
RuudBurger Jul 24, 2017
9039a30
Merge pull request #7225 from softcat/develop
RuudBurger Jul 24, 2017
a829434
Merge pull request #7224 from ofir123/feature/wizdom-support
RuudBurger Jul 24, 2017
8eaf8eb
Merge pull request #7223 from ofir123/hotfix/subscenter-url-update
RuudBurger Jul 24, 2017
2ed4154
Switch from qstatus (deprecated) to queue API call for SABnzbd
Safihre Jul 30, 2017
e4b7f2d
Add an option to reject scene releases when using PTP as a searcher
libussa Aug 12, 2017
1c5c15e
Merge pull request #1 from CouchPotato/develop
fiLLLip Aug 19, 2017
1310050
Fixed BitHDTV login failure. Now based on cookie from a logged in ses…
fiLLLip Aug 19, 2017
f4489e9
Replacing torrentz provider with torrentz2.
yldepm Aug 23, 2017
eea8d7b
cater for KB size files
yldepm Aug 23, 2017
51cc60c
Dismiss details overlay on pressing escape
Aug 29, 2017
dac86ee
Merge pull request #1 from CouchPotato/develop
whitter Sep 13, 2017
0f31ac8
Reworked the categories for TorrentLeech to catch WEB-DL, WEBRip, HDR…
Sep 13, 2017
1a9e7e4
Add support for 2160p quality to AR
nenladar Sep 28, 2017
fc59c65
Added new TorrentLeech category 47
whitter Sep 28, 2017
367fe59
BinSearch API update fixes
roeffus Sep 28, 2017
ea91650
Reformat release date in Kodi metadata
stefaang Oct 2, 2017
6106332
Added new SubsCenter provider.
ofir123 Oct 3, 2017
4bdde2b
New Feature: Safari pinned tab icon
Oct 8, 2017
8b1659c
Commit icons for pinned tab
Oct 8, 2017
c717562
Torrent9
cyberden Oct 10, 2017
f9b2ecc
Merge pull request #7249 from andofrjando/safari-pinned-tab-icon
RuudBurger Nov 4, 2017
da881bb
Merge pull request #7248 from ofir123/feature/new-subscenter-provider
RuudBurger Nov 4, 2017
9f9ca12
Merge pull request #7247 from stefaang/kodi-release-date
RuudBurger Nov 4, 2017
06d7670
Merge pull request #7244 from roeffus/develop
RuudBurger Nov 4, 2017
aedd055
Merge pull request #7242 from nenladar/patch-2
RuudBurger Nov 4, 2017
e3e7b53
Merge pull request #7240 from whitter/develop
RuudBurger Nov 4, 2017
1d98ff8
Merge pull request #7239 from mwarnaar/escape-close-details
RuudBurger Nov 4, 2017
0186d12
Merge pull request #7238 from yldepm/torrentz2
RuudBurger Nov 4, 2017
7abc56b
Merge pull request #7236 from fiLLLip/develop
RuudBurger Nov 4, 2017
cdebfcc
Merge pull request #7235 from libussa/feature/searcher/ptpnoscene
RuudBurger Nov 4, 2017
274020f
Merge pull request #7203 from pindab0ter/letterboxd-integration
RuudBurger Nov 4, 2017
e1f9aa8
Update xbmc.py
RuudBurger Nov 5, 2017
fda688f
Merge pull request #7140 from fernandog/patch-1
RuudBurger Nov 27, 2017
7a13c31
XThor domain change
cyberden Nov 29, 2017
e8438f1
Update yts.py
kainem Dec 6, 2017
1d5368c
Merge pull request #7254 from kainem/patch-1
RuudBurger Dec 6, 2017
dae7327
Merge branch 'develop'
Dec 10, 2017
b2dfcf8
Merge pull request #7234 from Safihre/patch-2
RuudBurger Dec 14, 2017
900f198
Use dashes in the date and fixed debug log format error
stefaang Jan 1, 2018
91bdaa1
Merge branch 'develop' into kodi-release-date
stefaang Jan 1, 2018
fdb637b
Merge pull request #7256 from stefaang/kodi-release-date
RuudBurger Jan 3, 2018
f53d4c2
Change search term for 2160p material from PTP provider
arebokert Jan 10, 2018
b95b726
Add reverse symlink support to renamer
michalskrivanek Jan 24, 2018
7185ac6
Merge pull request #7259 from arebokert/develop
RuudBurger Feb 11, 2018
7af009f
Merge pull request #7262 from michalskrivanek/develop
RuudBurger Feb 11, 2018
294ce55
Merge https://github.com/CouchPotato/CouchPotatoServer
cyberden Feb 26, 2018
96b17c3
TheMovieDb searcher : remove broken API keys
Ripolin Mar 10, 2018
8157050
Fix Torrenleech .torrent URLs
allthestairs Mar 26, 2018
508cd1f
Merge pull request #7273 from allthestairs/patch-1
RuudBurger Mar 30, 2018
12ca4c2
Merge branch 'develop'
RuudBurger Mar 31, 2018
601d23d
Fixing Torrentleech with new interface based on JS and json
Apr 10, 2018
bc9ee01
allow watching of trailer in fullscreen in firefox
DorianScholz Apr 13, 2018
05806c2
Add category ID for UHD 4K/2160p
gabrialm Apr 23, 2018
1a1304d
Merge pull request #1 from gabrialm/gabrialm-1
gabrialm Apr 23, 2018
f05b7f6
Merge pull request #7272 from Ripolin/feature/broken-api-keys
RuudBurger May 4, 2018
67105a0
Merge pull request #7277 from DorianScholz/develop
RuudBurger May 17, 2018
7d7d091
Merge https://github.com/CouchPotato/CouchPotatoServer
cyberden May 23, 2018
2a3cb6d
Multiple plex servers can be notified
cyberden Jun 27, 2018
b893ede
make torrentday great again
Jul 28, 2018
bfff975
Update couchpotato/core/media/_base/providers/torrent/passthepopcorn.py
Oct 15, 2018
e369771
Corrections
cyberden Nov 8, 2018
9d94683
Increased media query max-width to 485px
joshr4 Nov 27, 2018
2c4fe53
Merge pull request #7286 from joshr4/develop
RuudBurger Dec 5, 2018
e472ee7
Fix Transmission basic authentication
johanfleury Dec 6, 2018
5057288
Update alpharatio.py movie search categories
legacyweapon Dec 6, 2018
6265b94
Merge pull request #7288 from legacyweapon/patch-1
RuudBurger Jan 4, 2019
78d4785
Merge pull request #7266 from johanfleury/master
RuudBurger Jan 8, 2019
91d668c
Merge pull request #7278 from gabrialm/master
RuudBurger Jan 12, 2019
482e8a3
Merge pull request #7276 from pheuzoune/master
RuudBurger Jan 12, 2019
eb41af7
Merge pull request #7278 from gabrialm/master
RuudBurger Jan 12, 2019
3a2c8f6
Merge pull request #7276 from pheuzoune/master
RuudBurger Jan 12, 2019
1db03b9
Merge branch 'develop'
RuudBurger Jan 12, 2019
325b229
Merge pull request #7284 from nikosch86/develop
RuudBurger Jan 13, 2019
75e576e
Merge branch 'develop'
RuudBurger Jan 13, 2019
02a318b
Merge https://github.com/CouchPotato/CouchPotatoServer
cyberden May 23, 2018
e6a0b05
Multiple plex servers can be notified
cyberden Jun 27, 2018
240e371
Update couchpotato/core/media/_base/providers/torrent/passthepopcorn.py
Oct 15, 2018
05066cd
Corrections
cyberden Nov 8, 2018
eed3499
Merge branch 'master' of https://github.com/cyberden/CouchPotatoServer
cyberden Mar 11, 2019
58afb42
Fix URL
cyberden Oct 21, 2019
96607bc
fix imdb id
cyberden May 6, 2020
9f0160b
webdl is not brrip + fix crash (#28)
cyberden Apr 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
source=
./couchpotato/
omit =
./libs/*
./node_modules/*
[report]
omit =
*/python?.?/*
./libs/*
./node_modules/*
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.py]
indent_style = space

[*.md]
trim_trailing_whitespace = false
40 changes: 40 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Contributing to CouchPotatoServer

1. [Contributing](#contributing)
2. [Submitting an Issue](#issues)
3. [Submitting a Pull Request](#pull-requests)

## Contributing
Thank you for your interest in contributing to CouchPotato. There are several ways to help out, even if you've never worked on an open source project before.
If you've found a bug or want to request a feature, you can report it by [posting an issue](https://github.com/CouchPotato/CouchPotatoServer/issues/new) - be sure to read the [guidelines](#issues) first!
If you want to contribute your own work, please read the [guidelines](#pull-requests) for submitting a pull request.
Lastly, for anything related to CouchPotato, feel free to stop by the [forum](http://couchpota.to/forum/) or the [#couchpotato](http://webchat.freenode.net/?channels=couchpotato) IRC channel at irc.freenode.net.

## Issues
Issues are intended for reporting bugs and weird behaviour or suggesting improvements to CouchPotatoServer.
Before you submit an issue, please go through the following checklist:
* **FILL IN ALL THE FIELDS ASKED FOR**
* **POST MORE THAN A SINGLE LINE LOG**, if you do, you'd better have a easy reproducable bug
* Search through existing issues (*including closed issues!*) first: you might be able to get your answer there.
* Double check your issue manually, because it could be an external issue.
* Post logs with your issue: Without seeing what is going on, the developers can't reproduce the error.
* Check the logs yourself before submitting them. Obvious errors like permission or HTTP errors are often not related to CouchPotato.
* What movie and quality are you searching for?
* What are your settings for the specific problem?
* What providers are you using? (While your logs include these, scanning through hundreds of lines of logs isn't our hobby)
* Post the logs from the *config* directory, please do not copy paste the UI. Use pastebin to store these logs!
* Give a short step by step of how to reproduce the error.
* What hardware / OS are you using and what are its limitations? For example: NAS can be slow and maybe have a different version of python installed than when you use CP on OS X or Windows.
* Your issue might be marked with the "can't reproduce" tag. Don't ask why your issue was closed if it says so in the tag.
* If you're running on a NAS (QNAP, Austor, Synology etc.) with pre-made packages, make sure these are set up to use our source repository (CouchPotato/CouchPotatoServer) and nothing else!
* Do not "bump" issues with "Any updates on this" or whatever. Yes I've seen it, you don't have to remind me of it. There will be an update when the code is done or I need information. If you feel the need to do so, you'd better have more info on the issue.

The more relevant information you provide, the more likely that your issue will be resolved.
If you don't follow any of the checks above, I'll close the issue. If you are wondering why (and ask) I'll block you from posting new issues and the repo.

## Pull Requests
Pull requests are intended for contributing code or documentation to the project. Before you submit a pull request, consider the following:
* Make sure your pull request is made for the *develop* branch (or relevant feature branch).
* Have you tested your PR? If not, why?
* Does your PR have any limitations I should know of?
* Is your PR up-to-date with the branch you're trying to push into?
14 changes: 14 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Steps to reproduce:
1. ..
2. ..

### Information:
Movie(s) I have this with: ...
Quality of the movie being searched: ...
Providers I use: ...
Version of CouchPotato: ...
Running on: ...

### Logs:
```
```
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Description of what this fixes:
...

### Related issues:
...
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
*.pyc
/data/
/_env/
/_source/
.project
.pydevproject
/node_modules/
/.tmp/
/.sass-cache/
.coverage
coverage.xml
nosetests.xml

# Visual Studio

/.vs

.DS_Store
/.vscode/
2 changes: 2 additions & 0 deletions .nosetestsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[nosetests]
where=couchpotato
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: python

# with enabled SUDO the build goes slower
sudo: false

python:
# - "2.6"
- "2.7"
# - "3.2"
# - "3.3"
# - "3.4"
# - "3.5"
# - "3.5-dev" # 3.5 development branch
# - "nightly" # currently points to 3.6-dev

cache:
pip: true
directories:
- node_modules
- libs
- lib

# command to install dependencies
install:
- pip install --upgrade pip
- npm install
- pip install -r requirements-dev.txt -t ./libs

# command to run tests
script:
- grunt test
- grunt coverage

after_success:
coveralls
Binary file added .vs/CouchPotatoServer/v14/.suo
Binary file not shown.
40 changes: 24 additions & 16 deletions CouchPotato.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function
from logging import handlers
from os.path import dirname
import logging
Expand All @@ -9,7 +10,6 @@
import subprocess
import sys
import traceback
import time

# Root path
base_path = dirname(os.path.abspath(__file__))
Expand All @@ -18,7 +18,12 @@
sys.path.insert(0, os.path.join(base_path, 'libs'))

from couchpotato.environment import Env
from couchpotato.core.helpers.variable import getDataDir
from couchpotato.core.helpers.variable import getDataDir, removePyc


# Remove pyc files before dynamic load (sees .pyc files regular .py modules)
removePyc(base_path)


class Loader(object):

Expand All @@ -28,7 +33,7 @@ def __init__(self):

# Get options via arg
from couchpotato.runner import getOptions
self.options = getOptions(base_path, sys.argv[1:])
self.options = getOptions(sys.argv[1:])

# Load settings
settings = Env.get('settings')
Expand All @@ -47,9 +52,9 @@ def __init__(self):
os.makedirs(self.data_dir)

# Create logging dir
self.log_dir = os.path.join(self.data_dir, 'logs');
self.log_dir = os.path.join(self.data_dir, 'logs')
if not os.path.isdir(self.log_dir):
os.mkdir(self.log_dir)
os.makedirs(self.log_dir)

# Logging
from couchpotato.core.logger import CPLog
Expand All @@ -66,14 +71,15 @@ def addSignals(self):
signal.signal(signal.SIGTERM, lambda signum, stack_frame: sys.exit(1))

from couchpotato.core.event import addEvent
addEvent('app.after_shutdown', self.afterShutdown)
addEvent('app.do_shutdown', self.setRestart)

def afterShutdown(self, restart):
def setRestart(self, restart):
self.do_restart = restart
return True

def onExit(self, signal, frame):
from couchpotato.core.event import fireEvent
fireEvent('app.shutdown', single = True)
fireEvent('app.shutdown', single=True)

def run(self):

Expand All @@ -90,14 +96,15 @@ def restart(self):
# remove old pidfile first
try:
if self.runAsDaemon():
try: self.daemon.stop()
except: pass
try:
self.daemon.stop()
except:
pass
except:
self.log.critical(traceback.format_exc())

# Release log files and shutdown logger
logging.shutdown()
time.sleep(3)

args = [sys.executable] + [os.path.join(base_path, os.path.basename(__file__))] + sys.argv[1:]
subprocess.Popen(args)
Expand All @@ -117,7 +124,7 @@ def daemonize(self):
self.log.critical(traceback.format_exc())

def runAsDaemon(self):
return self.options.daemon and self.options.pid_file
return self.options.daemon and self.options.pid_file


if __name__ == '__main__':
Expand All @@ -132,14 +139,15 @@ def runAsDaemon(self):
pass
except SystemExit:
raise
except socket.error as (nr, msg):
except socket.error as e:
# log when socket receives SIGINT, but continue.
# previous code would have skipped over other types of IO errors too.
nr, msg = e
if nr != 4:
try:
l.log.critical(traceback.format_exc())
except:
print traceback.format_exc()
print(traceback.format_exc())
raise
except:
try:
Expand All @@ -148,7 +156,7 @@ def runAsDaemon(self):
if l:
l.log.critical(traceback.format_exc())
else:
print traceback.format_exc()
print(traceback.format_exc())
except:
print traceback.format_exc()
print(traceback.format_exc())
raise
Loading