Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
YTS at 1080p
#1
Hi guys,
Thanks for creating this awesome tool. (BlissFlixx). I have installed YTS plugins at it works perfectly. The only thing that I didnt like is that it only shows movies at 720p.
So I created a simple PHP script that help me fix this problem on my end. At least until the creator of this great plugin can fix it more permanently.

If anyone is interested what you have to do is put this code into a PHP file on any server that BlissFlixx can have access. It can be an Apache Server hosted on your raspberry pi, it doesnt matter really.
What it does is remove all 720p movies, so you can now select the 1080p ones. Dont use this script if your seed is not good enough.

Code:
<?php
$a =  file_get_contents("https://yts.ag/api/v2/list_movies.json?query_term=".$_GET['query_term']."&limit=".$_GET['limit']);
$b = explode('torrents":[',$a);
$i = 0;
$final = $b[0];
while($i < count($b))
        {
        $c = explode(']',$b[$i+1]);
                if (!preg_match("/},/",$c[0]))
                        {
                        }
                else
                        {
                        $d = explode("},",$c[0]);
                        $j=0;
                        while($j <count($d))
                                {
                                if (preg_match("/720p/",$d[$j]))
                                        {
                                        $a = str_replace($d[$j]."},","",$a);
                                        }
                                $j++;
                              }

                        }
        $i++;
        }
echo $a;
?>

Then go into yout BlissFlixx Intalation directory and edit the YTS plug in (File: __init__.py)
and change this line:
_SEARCH_URL = 'https://yts.ag/api/v2/list_movies.json'

for

_SEARCH_URL = 'http://yourdomain.com/yourphpscript.php'

That's it. I hope this is useful for you as it was for me.

Best Regards,

By the way.
I tried to watch the movie "Point Brake 2015" (at 1080p on YTS Plugin) and the Subtitles were wrong. It were probably from another movie. Is there any way to fix that?

Regards,
Reply


Messages In This Thread
YTS at 1080p - tomcontr - 04-19-2016, 03:50 AM
RE: YTS at 1080p - MrBliss - 04-19-2016, 08:24 AM
RE: YTS at 1080p - tomcontr - 04-19-2016, 01:28 PM
RE: YTS at 1080p - MrBliss - 04-20-2016, 01:04 PM
RE: YTS at 1080p - tomcontr - 04-20-2016, 01:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)