Extension -> Userscript
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
from .main import TMDB
|
||||
|
||||
def start():
|
||||
return TMDB()
|
||||
|
||||
config = []
|
||||
@@ -0,0 +1,31 @@
|
||||
from couchpotato.core.providers.userscript.base import UserscriptBase
|
||||
|
||||
|
||||
class TMDB(UserscriptBase):
|
||||
|
||||
includes = ['http://www.themoviedb.org/movie/*']
|
||||
|
||||
#CouchPotato['themoviedb.org'] = (function(){
|
||||
#
|
||||
# var obj = this;
|
||||
#
|
||||
# function getId() {
|
||||
#
|
||||
# name = document.title.substr(0, document.title.indexOf("TMDb")-3).replace(/ /g, "+");
|
||||
# lib.search(name, getYear())
|
||||
#
|
||||
# }
|
||||
#
|
||||
# function getYear(){
|
||||
# var year = document.getElementById("year").innerHTML;
|
||||
# year = year.substr(1, year.length-2);
|
||||
# return year;
|
||||
# }
|
||||
#
|
||||
# function constructor(){
|
||||
# getId();
|
||||
# }
|
||||
#
|
||||
# return constructor;
|
||||
#
|
||||
#})();
|
||||
Reference in New Issue
Block a user