You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
651 B
32 lines
651 B
14 years ago
|
from couchpotato.core.providers.userscript.base import UserscriptBase
|
||
14 years ago
|
|
||
|
|
||
14 years ago
|
class TMDB(UserscriptBase):
|
||
14 years ago
|
|
||
|
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;
|
||
|
#
|
||
|
#})();
|