Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 15th March 2015, 14:49
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default Request! TvRage [Mod]
Hello guys,

I am in need for a tvrage mod to be linking tv series of course so uploaders can select to place a imdb link or tvrage link before uploading and it appears on the example rental.php?t=234 page and well if anyone has the mod would be appreciated if you could share it here.

I need it for tbdev09 but if you have it for another version below please still share as I am sure I could make it work on the tbdev base I have ripped apart and made an over haul on.

Thanks,
BamBam
Reply With Quote
  #2  
Old 15th March 2015, 15:33
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Default
PHP Code:
/*
   Mystic Avengers 420
  Developed By BamBam0077 */

body {

    
background#222 url(http://demo.shnayder.pro/works/through-the-universe/img/background.jpg) no-repeat center center fixed;
    
padding1px;}

::-
webkit-input-placeholder {

    
color:#333;}

input:-moz-placeholder {

    
color:#333;}

div.login {

    
width500px;
    
positionrelative;
    
margin-top240px;
    
margin-left582px;}

div.boxCont {

    
width700px;
    
padding30px;
    
margin-top10px;
    
border-radius10px;
    
color#fff;
    
background#000;
    
backgroundrgba(0000.75);
    
background: -moz-linear-gradient(toprgba(2424240.50%, rgba(0000.75100%);
    
background: -webkit-gradient(linearleft topleft bottomcolor-stop(0%, rgba(2424240.5)), color-stop(100%, rgba(0000.75100%));
    
background: -webkit-linear-gradient(toprgba(2424240.50%, rgba(0000.75100%);
    
background: -o-linear-gradient(toprgba(2424240.50%, rgba(0000.75100%);
    
background: -ms-linear-gradient(toprgba(2424240.50%, rgba(0000.75100%);
    
background: -webkit-linear-gradient(toprgba(2424240.650%, rgba(0000.85100%);
    -
webkit-box-shadow0 3px 10px rgba(0000.9), inset 0 1px 0 rgba(2552552550.2);
    -
moz-box-shadow0 3px 10px rgba(0000.9), inset 0 1px 0 rgba(2552552550.2);
    
box-shadow0 3px 10px rgba(0000.9), inset 0 1px 0 rgba(2552552550.2);
    
overflowhidden;}

/* Shadow */
.boxCont:after {

    
positionabsolute;
    
bottom: -20px;
    
left0;
    
width147%;
    -
webkit-border-radius50%;
    -
moz-border-radius50%;
    
border-radius50%;
    -
webkit-box-shadow0px 0px 8px 5px rgba(0,0,0,0.5);
    -
moz-box-shadow0px 0px 8px 5px rgba(0,0,0,0.5);
    
box-shadow0px 0px 8px 5px rgba(0,0,0,0.5);}

.
boxCont div {

    
overflowhidden;}

/* Buttons */
input.btn {

    
displayinline-block;
    
text-decorationnone;
    
font14px/18px Arialsans-serif;
    
colorwhite;
    
padding12px 40px;
    
margin15px 0 0;
    
margin-left40px;
    
cursorpointer;
    
background-color#0064cd;
    
background-repeatrepeat-x;
    
background-image: -khtml-gradient(linearleft topleft bottomfrom(#049cdb), to(#0064cd));
    
background-image: -moz-linear-gradient(top#049cdb, #0064cd);
    
background-image: -ms-linear-gradient(top#049cdb, #0064cd);
    
background-image: -webkit-gradient(linearleft topleft bottomcolor-stop(0%, #049cdb), color-stop(100%, #0064cd));
    
background-image: -webkit-linear-gradient(top#049cdb, #0064cd);
    
background-image: -o-linear-gradient(top#049cdb, #0064cd);
    
background-imagelinear-gradient(to bottom#049cdb, #0064cd);
    
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb'endColorstr='#0064cd'GradientType=0);
    
border1px solid #ccc;
    
border-color#0064cd #0064cd #003f81;
    
border-colorrgba(0000.1rgba(0000.1rgba(0000.25);
    -
webkit-border-radius4px;
    -
moz-border-radius4px;
    
border-radius4px;
    -
webkit-transitionall .2s ease;
    -
moz-transitionall .2s ease;
    -
ms-transitionall .2s ease;
    -
o-transitionall .2s ease;
    
transitionall .2s ease;}

input.btn.right {

    
floatright;}

input.btn:hover {

    
background-position-15px;
    
text-decorationnone;}

input.btn:active {
    
    -
webkit-box-shadowinset 0 2px 4px rgba(0000.25),0 1px 2px rgba(0000.05);
    -
moz-box-shadowinset 0 2px 4px rgba(0000.25),0 1px 2px rgba(0000.05);
    
box-shadowinset 0 2px 4px rgba(0000.25),0 1px 2px rgba(0000.05);}
/* Input */
input[type=text], input[type=password] {
    
    
padding14px 10px;
    
width100%;
    
border1px solid #ccc;
    
displayblock;
    
margin-left: -10px;
    
background#d3efff;
    
background: -moz-linear-gradient(top,  #d3efff 0%, #ffffff 55%);
    
background: -webkit-gradient(linearleft topleft bottomcolor-stop(0%,#d3efff), color-stop(55%,#ffffff));
    
background: -webkit-linear-gradient(top,  #d3efff 0%,#ffffff 55%);
    
background: -o-linear-gradient(top,  #d3efff 0%,#ffffff 55%);
    
background: -ms-linear-gradient(top,  #d3efff 0%,#ffffff 55%);
    
backgroundlinear-gradient(top,  #d3efff 0%,#ffffff 55%);
    
filterprogid:DXImageTransform.Microsoft.gradientstartColorstr='#d3efff'endColorstr='#ffffff',GradientType=);
    -
webkit-border-radius4px;
    -
moz-border-radius4px;
    
border-radius4px;}

input[type=password] {

    
margin-top5px;}

input[type=text]:focus {

    
border-color#0D4573;
    
-webkit-box-shadowinset 0 1px 1px rgba(0000.075), 0 0 8px rgb(82168236);
    -
moz-box-shadowinset 0 1px 1px rgba(0000.075), 0 0 8px rgb(82168236);
    
box-shadowinset 0 1px 1px rgba(0000.075), 0 0 8px rgb(82168236);}

input[type=password]:focus {

    
border-color#0D4573;
    
-webkit-box-shadowinset 0 1px 1px rgba(0000.075), 0 0 8px rgb(82168236);
    -
moz-box-shadowinset 0 1px 1px rgba(0000.075), 0 0 8px rgb(82168236);
    
box-shadowinset 0 1px 1px rgba(0000.075), 0 0 8px rgb(82168236);}

/* Animation */
.css3-notification {

    -
webkit-animationbounce 1.2s ease-out;
    -
moz-animationbounce 800ms ease-out;
    -
o-animationbounce 800ms ease-out;
    
animationbounce 1.2s ease-out;}

/* W3, Opera 12+, Firefox 16+ */
@keyframes bounce {

  
0% {
    
    
transform:translateY(-100%);
    
opacity0;}

  
5% {

    
transform:translateY(-100%);
    
opacity0;}
    
  
15% {

    
transform:translateY(0);
    
padding-bottom5px;}
    
  
30% {
      
    
transform:translateY(-50%);}

  
40% {
      
    
transform:translateY(0%);
    
padding-bottom6px;}
  
  
50% {

      
transform:translateY(-30%);}
    
  
70% {
      
    
transform:translateY(0%);
    
padding-bottom7px;}

  
80% {
      
    
transform:translateY(-15%);}
    
  
90% {
      
    
transform:translateY(0%);
      
padding-bottom8px;}
    
  
95% {
      
    
transform:translateY(-7%);}
    
  
97% {
      
    
transform:translateY(0%);
      
padding-bottom9px;}
    
  
99% {
      
    
transform:translateY(-3%);}
    
  
100% {
      
    
transform:translateY(0);
      
padding-bottom9px;
    
opacity1;}


i would sort this out and a side note you have errors in your bittorrant on longin

and i would put a signup up link in too


PHP Code:
<!doctype html>
          <
html xmlns='http://www.w3.org/1999/xhtml'>
          <
head>
          <
title>Mystic Avengers :: Login</title>
          <
meta name='generator' content='Mystical' />
          <
meta http-equiv='Content-Language' content='en-us' />
          <
meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
          <
link type='text/css' rel='stylesheet' href='http://fonts.googleapis.com/css?family=Orbitron' />
          <
link type='text/css' rel='stylesheet' href='../templates/1/css3/login.css' />
          </
head>
          <
body>
          <
div class="css3-bounce-effect">
          <
div class='login'>
           <
div class="css3-notification">
          <
div class='boxCont'>
          <
form method='post' action='takelogin.php'>
          <
input type='text' size='120' name='username' placeholder="Username Here" />
          <
input type='password' size='190' name='password' placeholder="Password Here" />
          <
input style='float: right;' id="signIn" name="submitme" type="submit" value="Login" class="btn" /></form>
          </
div>
          </
div>
          </
div>
          </
div>
          </
body>
          </
html
And i would make a file and add this to it as well


PHP Code:
@font-face {   font-family'Orbitron';   font-stylenormal;   font-weight400;   srclocal('Orbitron-Light'), local('Orbitron-Regular'), url(http://fonts.gstatic.com/s/orbitron/v6/HmnHiRzvcnQr8CjBje6GQvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'), url(http://fonts.gstatic.com/s/orbitron/v6/94ug0rEgQO_WuI_xKJMFc_esZW2xOQ-xsNqO47m55DA.woff) format('woff'); } 
Reply With Quote
  #3  
Old 15th March 2015, 17:14
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
LOL, the code is 100% beta so there bound to be errors but never the less

that has nothing to do with my request
Reply With Quote
  #4  
Old 15th March 2015, 18:27
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
I had the exact code you are looking for, but lost it since my backup HDD decided it was time to die :|
But can't you extract it from U-232 and make it work on 09 ?
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
The Following User Says Thank You to DND For This Useful Post:
BamBam0077 (15th March 2015)
  #5  
Old 15th March 2015, 18:29
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
didn't know they had a tvrage mod but will look bro thanks
Reply With Quote
  #6  
Old 15th March 2015, 19:29
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Thumbs up
yes the u232 v3 will work in the 09 as i done it and works a treat
Reply With Quote
  #7  
Old 16th March 2015, 03:22
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
Thanks Guys!
Reply With Quote
  #8  
Old 16th March 2015, 23:05
Joe Joe is offline
Senior Member
 
Join Date: Apr 2010
P2P
Posts: 167
Default
Below is the TvRage mod for u-232

I thought you had modded u-232 before?
You can mod this to any of the u-232 or TBDev. You will need to change a bit of stuff to work tho. There is nothing on Github about it so best run over to there site and you probably find it for the 09 code too. Would make your life a bit easy....
PHP Code:
<?php
/**
 |--------------------------------------------------------------------------|
 |   https://github.com/Bigjoos/                                |
 |--------------------------------------------------------------------------|
 |   Licence Info: GPL                                                |
 |--------------------------------------------------------------------------|
 |   Copyright (C) 2010 U-232 V4                        |
 |--------------------------------------------------------------------------|
 |   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.   |
 |--------------------------------------------------------------------------|
 |   Project Leaders: Mindless,putyn.                        |
 |--------------------------------------------------------------------------|
  _   _   _   _   _     _   _   _   _   _   _     _   _   _   _
 / \ / \ / \ / \ / \   / \ / \ / \ / \ / \ / \   / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
 \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/ \_/ \_/   \_/ \_/ \_/ \_/
 */
//tvrage functions
$INSTALLER09['tvrage_api'] = 'NxDOrw2uadOgyLuDtmaR';
function 
tvrage_format($tvrage_data$tvrage_type)
{
    
$tvrage_display['show'] = array(
        
'showname' => '<b>%s</b>',
        
'showlink' => '%s',
        
'startdate' => 'Started: %s',
        
'ended' => 'Ended: %s',
        
'origin_country' => 'Country: %s',
        
'status' => 'Status: %s',
        
'classification' => 'Classification: %s',
        
'summary' => 'Summary:<br/> %s',
        
'runtime' => 'Runtime %s min',
        
'genres' => 'Genres: %s'
    
);
    
$tvrage_display['episode'] = array(
        
'episode' => 'This week episode: %s "%s" on %s<br/>%s<br/>Summary: %s',
        
'nextepisode' => 'Next episode: %s "%s" on %s %s %s'
    
);
    foreach (
$tvrage_data as $key => $data) {
        if (!isset(
$tvrage_display[$tvrage_type][$key])) continue;
        
$tvrage_display[$tvrage_type][$key] = is_string($data) ? sprintf($tvrage_display[$tvrage_type][$key], $data) : sprintf($tvrage_display[$tvrage_type][$key], $data['number'], $data['title'], date('M/d/Y - l'strtotime($data['airdate'])) , (isset($data['url']) ? $data['url'] : '') , (isset($data['summary']) ? $data['summary'] : ''));
    }
    if (!isset(
$tvrage_data['ended'])) unset($tvrage_display[$tvrage_type]['ended']);
    return 
join('<br/><br/>'$tvrage_display[$tvrage_type]);
}
function 
tvrage(&$torrents)
{
    global 
$mc1$INSTALLER09;
    
$tvrage_data '';
    
$row_update = array();
    if (
preg_match("/^(.*)S(\d+)(E(\d+))?/"$torrents['name'], $tmp)) $tvrage = array(
        
'name' => str_replace('.'' '$tmp[1]) ,
        
'season' => (int)$tmp[2],
        
'episode' => (int)(isset($tmp[4]) ? $tmp[4] : 0)
    );
    else 
$tvrage = array(
        
'name' => str_replace('.'' '$torrents['name']) ,
        
'season' => 0,
        
'episode' => 0
    
);
    
$memkey 'tvrage::' strtolower($tvrage['name']);
    if ((
$tvrage_id $mc1->get_value($memkey)) === false) {
        
//get tvrage id
        
$tvrage_link sprintf('http://services.tvrage.com/myfeeds/search.php?key=%s&show=%s'$INSTALLER09['tvrage_api'], urlencode($tvrage['name']));
        
$tvrage_xml file_get_contents($tvrage_link);
        if (
preg_match('/\<showid\>(\d+)<\/showid\>/'$tvrage_xml$tmp)) {
            
$tvrage_id $tmp[1];
            
$mc1->cache_value($memkey$tvrage_id0);
        } else return 
false;
    }
    
$force_update false;
    if (empty(
$torrents['newgenre']) || empty($torrents['poster'])) $force_update true;
    
$memkey 'tvrage::' $tvrage_id;
    if (
$force_update || ($tvrage_showinfo $mc1->get_value($memkey)) === false) {
        
//var_dump('Show from tvrage'); //debug
        //get tvrage show info
        
$tvrage_link sprintf('http://services.tvrage.com/myfeeds/showinfo.php?key=%s&sid=%d'$INSTALLER09['tvrage_api'], $tvrage_id);
        
$tvrage_xml file_get_contents($tvrage_link);
        
preg_match_all('/\<(showname|showlink|startdate|ended|image|origin_country|status|classification|summary|airtime|runtime)\>(.+)\<\/\\1\>/s'$tvrage_xml$tmpPREG_SET_ORDER);
        foreach (
$tmp as $data) {
            if (!
$data[2]) continue;
            
$tvrage_showinfo[$data[1]] = $data[2];
        }
        
preg_match_all('/\<genre\>(.*?)\<\/genre>/'$tvrage_xml$tmp);
        if (
count($tmp[1])) $tvrage_showinfo['genres'] = join(', 'array_map('strtolower'$tmp[1]));
        if (empty(
$torrents['newgenre'])) $row_update[] = 'newgenre = ' sqlesc(ucwords($tvrage_showinfo['genres']));
        
//==The torrent cache
        
$mc1->begin_transaction('torrent_details_' $torrents['id']);
        
$mc1->update_row(false, array(
            
'newgenre' => ucwords($tvrage_showinfo['genres'])
        ));
        
$mc1->commit_transaction(0);
        if (empty(
$torrents['poster'])) $row_update[] = 'poster = ' sqlesc($tvrage_showinfo['image']);
        
//==The torrent cache
        
$mc1->begin_transaction('torrent_details_' $torrents['id']);
        
$mc1->update_row(false, array(
            
'poster' => $tvrage_showinfo['image']
        ));
        
$mc1->commit_transaction(0);
        if (
count($row_update)) sql_query('UPDATE torrents set ' join(', '$row_update) . ' WHERE id = ' $torrents['id']) or sqlerr(__FILE____LINE__);
        
$tvrage_showinfo tvrage_format($tvrage_showinfo'show') . '<br/>';
        
$mc1->cache_value($memkey$tvrage_showinfo0);
        
$tvrage_data.= $tvrage_showinfo;
    } else {
        
//var_dump('Show from mem'); //debug
        
$tvrage_data.= $tvrage_showinfo;
    }
    
//check to see if its a show its an episode
    
if ($tvrage['season'] > && $tvrage['episode'] > 0) {
        
$memkey 'tvrage::' $tvrage_id '::' $tvrage['season'] . 'x' $tvrage['episode'];
        if ((
$tvrage_epinfo $mc1->get_value($memkey)) === false) {
            
//var_dump('Ep from tvrage'); //debug
            //get episode info
            
$tvrage_link sprintf('http://services.tvrage.com/myfeeds/episodeinfo.php?key=%s&sid=%d&ep=%dx%d'$INSTALLER09['tvrage_api'], $tvrage_id$tvrage['season'], $tvrage['episode']);
            
$tvrage_xml file_get_contents($tvrage_link);
            
preg_match_all('/\<(episode|nextepisode)\>(.*?)\<\/\\1\>/'$tvrage_xml$tmpPREG_SET_ORDER);
            foreach (
$tmp as $data) {
                
preg_match_all('/\<(number|title|airdate|url|summary)\>(.*?)\<\/\\1\>/s'$data[2], $tmp_1PREG_SET_ORDER);
                foreach (
$tmp_1 as $data_1$tvrage_epinfo[$data[1]][$data_1[1]] = $data_1[2];
            }
            
$tvrage_epinfo tvrage_format($tvrage_epinfo'episode') . '<br/>';
            
$mc1->cache_value($memkey$tvrage_epinfo0);
            
$tvrage_data.= $tvrage_epinfo;
        } else {
            
//var_dump('Ep from mem'); //debug
            
$tvrage_data.= $tvrage_epinfo;
        }
    }
    return 
$tvrage_data;
}
?>
PHP Code:
$HTMLOUT.= "
<table align='center' class='table table-bordered'>\n"
;
//== tvrage by pdq/putyn
$torrents['tvcats'] = array(
    
5
); // change these to match your TV categories
if (in_array($torrents['category'], $torrents['tvcats'])) {
    require_once (
INCL_DIR 'tvrage_functions.php');
    
$tvrage_info tvrage($torrents);
    if (
$tvrage_info$HTMLOUT.= tr($lang['details_tvrage'], $tvrage_info1);

Reply With Quote
  #9  
Old 16th March 2015, 23:06
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
there is on github.
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #10  
Old 17th March 2015, 05:57
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
1)Name this and call it series_function.php and save it to the function folder.
You will need to get a free API key from TVRAGE by simply registering and add it to
$TVRAGE_KEY = '';
Code:
<?

///////////////////////////////////////////////Auto Series mod By firefly/////////////////////////////////////////////

$TVRAGE_KEY = '';// Register to tvrage and get your API get

function cut_name_r($data) {
$originals = array(".","-","(",")","DVDRip","EXViDT","XviD","RedBlade",
              "dia","dia","2013","TWiST","MAGNiTUDE",
              "WEBRip","FTP","TWiST","HDNORDiC","BLURAY",
              "COMPLETE","LIMITED","HDTV","x264","TLA",
              "NOSCREENS","belli","352p","AUDiO","NEW",
              "JUSTiCE","1080p","FiHTV","HTV","C4TV","2HD",
              "EVOLVE","KILLERS","BALLS","720p","PDTV","FQM",
              "BWB","_","FoV","NOCENCE","iGNiTiON","DVDR",
              "2012","ViDERE","SPANiSH","SCARED","2011","NTSC",
              "WTF","SPARKS","BDRip","SHOCKWAVE","KYR","SKGTV",
              "CRiMSON","TARGET","PSYCHD","ANGELiC","CAM","HP",
              "FooKaS","R6","DIMENSION","X264","HDTV","720p",
              "AQOS","HDRip","CHD","DTS","REAL","AFG","LOL",
              "AC3","R5","S07","E01","S07","E02","S01","E03",
              "S02","E04","S03","E05","S04","E06","S05","E07",
              "S06","E09","S07","E10","S08","E11","S09","E12",
              "S10","E13","S11","S12","E14","BAJSKORV","TERNAL",
              "E24","W4F","UK","S14","DHD","QCF","S20","REPACK",
              "utL","NovaRip","Mux","DL","Tutto",
              "Pronti","GABE","DD5","WEB","utL","NovaRip",
              "Mux","DL","Tutto","Pronti","GABE","DD5","FQM",
              "KGS","NZBSoOTi","BS","Silver007","DOCUMENT","WiDE",
              "LOL","UNiQUE","PSiG","1080p","IMMERSE","Videomann",
              "Videomann","PROD","EwDp","WS","uCorsu",
              "D-Z0N3","IOM","PLAYNOW","LAP","iGNHQ","Dutch","biz",
              "W00D","FiCO","DEiMOS","SUBPACK","KAFFEREP",
              "IOM","PLAYNOW","LAP","iGNHQ","Dutch","biz",
              "W00D","FiCO","DEiMOS","SUBPACK","KAFFEREP",
              "OSiTV","E26","TASTE","YesT","TASTE",
              "E20","BERC","rst","CDR","2006", "E08", "E16","E28","PFa",
              "E83","E65","E64","E66","E68","E89","E88","E86",
              "E87","E85","E82","E81","E80","E79","E78","E77","E76",
              "E75","E74","E73","E72","E71","E63","E62","E61","E87",
              "E70","E29","uCorsu","E22","E19","RiP","HDA","WHEELS","EDITED",
              "FaiLED","UNCUT","ForzaCorsica","SML","iFPD","E23","E15",
              "UNRATED","READNFO","VOD","SUBMERGE","VTFR","boheme",
              "2014 ","SANTi","German","VoMiT","GOREHOUNDS","REMASTERED",
              "LiViDiTY","ALLiAN","FRAGMENT","IGUANA","aAF","FLAWL3S",
              "sUN","RiVER","SMOKEY","TWiZTED","UZY","vYt","UrK","zWW",
              "EXViDiNT","DVDSCREENER","HQ","nLF","Custom","XzR","qug",
              "DOCU","ARROW","DownRev","PAL","HEBDUB","hxa","GECKOS","AFq",
              "fLC","PROPER","NFOFiX","fyO","Qyt","BgFr","EVO","BR","ACAB",
              "Waw","Qzh","SChiZO","TERRA");

$replacements = array(" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
 " "," "," ", " ", " ", " ", " ", " ", " " , " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
 " "," "," "," "," ");    
$data = str_ireplace($originals, $replacements, $data);
return $data;
}



class TV
{
        
public function RAGEID($name){
    
$title =  cut_name_r($name);
$NUrl = urlencode(strtolower($title));
$Url1 =  "http://services.tvrage.com/feeds/full_search.php?show='$NUrl";
$feed=    file_get_contents($Url1);

$VAR = new SimpleXmlElement($feed);
$elem_1a  = $VAR -> xpath('show/showid');
return $elem_1a[0];    
}    
 
public function TVRAGE($id,$sw){
global $TVRAGE_KEY;

$ela  = '';$elb  = '';$elc  = '';$eld  = '';$ele  = '';$elf  = '';$elg  = '';$elh  = '';$eli  = '';$elja = '';$elk = '';
    
$Url1 = 'http://services.tvrage.com/myfeeds/showinfo.php?key='.$TVRAGE_KEY.'&sid='.$id;
$feed1= file_get_contents($Url1);
if(false !== $feed1)
{
$VAR = new SimpleXmlElement($feed1);
 
$elem_1a  = $VAR -> xpath('showid');           $ela  = $elem_1a[0];
$elem_2b  = $VAR -> xpath('showname');         $elb  = $elem_2b[0];
$elem_2c  = $VAR -> xpath('seasons');          $elc  = $elem_2c[0];
$elem_2d  = $VAR -> xpath('image');            $eld  = $elem_2d[0];
$elem_2e  = $VAR -> xpath('started');          $ele  = $elem_2e[0];
$elem_2f  = $VAR -> xpath('startdate');        $elf  = $elem_2f[0];
$elem_2g  = $VAR -> xpath('ended');            $elg  = $elem_2g[0];
$elem_2h  = $VAR -> xpath('runtime');          $elh  = $elem_2h[0];
$elem_2i  = $VAR -> xpath('airtime');          $eli  = $elem_2i[0];
$elem_2ja = $VAR -> xpath('network');         $elja  = $elem_2ja[0];
}
 
$Url2 = 'http://services.tvrage.com/myfeeds/episode_list.php?key='.$TVRAGE_KEY.'&sid='.$id;
$feed2=    file_get_contents($Url2);
if(false !== $feed2)
{   
$var2 = new SimpleXmlElement($feed2);
$elem_2a  = $var2 -> xpath('Episodelist/Season/episode/rating');
if (isset($elem_2a[0])){$elk  = $elem_2a[0];}  
}
switch ($sw) {
  case "rageID":       $out = $ela;break;
  case "name":         $out = $elb;break;
  case "seasons":      $out = $elc;break;
  case "image":        $out = $eld;break;
  case "started":      $out = $ele;break;
  case "startdate":    $out = $elf;break;
  case "ended":        $out = $elg;break;
  case "runtime":      $out = $elh;break;
  case "airtime":      $out = $eli;break;
  case "network":      $out = $elja;break;
  case "rate":         $out = $elk;break;
}
return $out;
}

public function TVDB($name,$sw){
global $TVDB_KEY;
$Url = 'http://thetvdb.com/api/GetSeries.php?seriesname=' . str_replace(" ", "%20", $name);
$feed= file_get_contents($Url);
if(false !== $feed)
{
$var1 = new SimpleXmlElement($feed);
$tvdb_id = ''; $tvdb_id = ''; $tvdb_name = ''; $first = ''; $net = ''; $imdb = ''; $zap2it_id = ''; $tvdb_ban = ''; $tvdb_ove = '';
  
$tvdb_id    = $var1 -> xpath('Series/seriesid');
$tvdb_name  = $var1 -> xpath('Series/SeriesName');
$first      = $var1 -> xpath('Series/FirstAired');
$net        = $var1 -> xpath('Series/Network');
$imdb       = $var1 -> xpath('Series/IMDB_ID');
$zap2it_id  = $var1 -> xpath('Series/zap2it_id');
$tvdb_ban   = $var1 -> xpath('Series/banner');
$tvdb_ove   = $var1 -> xpath('Series/Overview');

$id = ''; $name = ''; $firstair = ''; $network = ''; $imdbID = ''; $zap = ''; $ban = ''; $over = ''; 
 
if (isset($tvdb_id[0])) {$id        = $tvdb_id[0];}
if (isset($tvdb_name[0])){$name     = $tvdb_name[0];}
if (isset($first[0])){$firstair     = $first[0];}
if (isset($net[0])){$network        = $net[0];}
if (isset($imdb[0])){$imdbID        = $imdb[0];}
if (isset($zap2it_id[0])){$zap      = $zap2it_id[0];}
if (isset($tvdb_ban[0])){$ban       = $tvdb_ban[0];}
if (isset($tvdb_ove[0])){$over      = $tvdb_ove[0];}
}


 
switch ($sw) {
 
  case "id"    :$out = $id;break;
  case "name"  :$out = $name;break;
  case "air"   :$out = $firstair;break;
  case "net"   :$out = $network;break;
  case "imdb"  :$out = $imdbID;break;
  case "zap"   :$out = $zap;break;
  case "ban"   :$out = 'http://thetvdb.com/banners/_cache/'.$ban;break;
  case "desc"  :$out = $over;break;
  default      :$out = $name;
}
 
return $out;
}

}
Edit details.php and add

Code:
require_once (INCL_DIR.'series_functions.php');
under
Code:
require_once (IMDB_DIR.'imdb.class.php');
Add above

Code:
$my_points = (isset($torrent['torrent_points_'][$CURUSER['id']]) ? (int)$torrent['torrent_points_'][$CURUSER['id']] : 0);
or where ever you want it! Edit add the category/categories you want Or replace

Code:
($torrents['category'] == 5){
with
Code:
if (preg_match("/S(\d+)E(\d+)/i", $torrent["name"])){
Code:
///////////////////////////////////////////////Auto Series mod By firefly/////////////////////////////////////////////
    
    if ($torrents['category'] == 5){
           
        $TV = new TV;

        $RAGEID =  $TV->RAGEID($torrents['name']);
                
        $res = sql_query(" SELECT * FROM series WHERE rageID = '$RAGEID'");
        $row = mysqli_fetch_array($res);
        
    if ($RAGEID == $row["rageID"]){
        $RAGEID  = $row["rageID"];
        $TVDBID  = $row["tvdbID"];
        $NAME    = $row["name"];
        $RUNTIME = $row["runtime"];
        $NETWORK = $row["network"];
        $RATE    = $row["rate"];    
        $POSTER  = $row["poster"];
        $SYM     = $row["sym"];        
    }else{
        $RAGEID  = $TV->TVRAGE($RAGEID,"rageID");
        $NAME    = $TV->TVRAGE($RAGEID,"name");
        $TVDBID  = $TV->TVDB($NAME,"id");
        $RUNTIME = $TV->TVRAGE($RAGEID,"runtime");
        $NETWORK = $TV->TVRAGE($RAGEID,"network");
        $RATE    = $TV->TVRAGE($RAGEID,"rate");    
        $POSTER  = $TV->TVRAGE($RAGEID,"image");
        $SYM     = $TV->TVDB($NAME,"desc");
        sql_query("INSERT INTO series (rageID, tvdbID, name, runtime, network, rate, poster, sym)
         VALUES ('".mysql_escape_string($RAGEID)."', '".mysql_escape_string($TVDBID)."', '".mysql_escape_string($NAME)."', '".mysql_escape_string($RUNTIME)."', '".mysql_escape_string($NETWORK)."', '".mysql_escape_string($RATE)."', '".mysql_escape_string($POSTER)."', '".mysql_escape_string($SYM)."')")or mysql_error();
        }        
        
    if (!empty($POSTER)){      
       $HTMLOUT.= '<tr><td class="heading" valign="top" align="right">Poster</td>
        <td valign="top" align="left"><img src="'.$POSTER.'"></td></tr>';
        }
    if (!empty($RUNTIME)){      
       $HTMLOUT.= '<tr><td class="heading" valign="top" align="right">Runtime</td>
        <td valign="top" align="left">'.$RUNTIME.'</td></tr>';
        }
    if (!empty($NETWORK)){      
       $HTMLOUT.= '<tr><td class="heading" valign="top" align="right">Network</td>
        <td valign="top" align="left">'.$NETWORK.'</td></tr>';
        }
    if (!empty($RATE)){      
       $HTMLOUT.= '<tr><td class="heading" valign="top" align="right">Rating</td>
        <td valign="top" align="left">'.$RATE.'</td></tr>';
        }
    if (!empty($SYM)){      
       $HTMLOUT.= '<tr><td class="heading" valign="top" align="right">Tv Desc</td>
        <td valign="top" align="left">'.$SYM.'</td></tr>';
        }
        }    
    
    ///////////////////////////////////////////END auto Series mod By firefly//////////////////////////////////////////
execute this..

Code:
CREATE TABLE IF NOT EXISTS `series` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rageID` int(10) NOT NULL,
  `tvdbID` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `runtime` int(10) NOT NULL,
  `network` varchar(255) NOT NULL,
  `rate` int(10) NOT NULL,
  `poster` varchar(255) NOT NULL,
  `sym` longtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=464 ;
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me


Last edited by firefly007; 17th March 2015 at 08:55.
Reply With Quote
The Following 2 Users Say Thank You to firefly007 For This Useful Post:
DND (17th March 2015), Joe (17th March 2015)
Reply

Tags
mod , request , tvrage

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 00:40. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.