Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
SQL Error Failed to connect.
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2022-02-16 19:27:37
What is the difference between SPL iterator and this


if (isset($info['files']) || $filecount > 1)
           {
               if (isset($info['files']) && is_array($info['files']))
               {
                   $torrentInfo['files'] = $info['files'];
                   foreach ($info['files'] as $file)
                   {
                       $filecount = ++$filecount;
                       $torrentsize += $file['length'];
                   }
                   $torrentInfo['length'] = $torrentsize;
                   $torrentInfo['ttfilecount'] = !empty($path) ? count($path) : $filecount;
               }
           }


The iterator class works perfectly, exact same result - with less looping needed. Is your iterator code faster or just elegant? I chose to replace with it as the code looks a lot cleaner but its a long routine compared to the code posted ^
2022-02-16 22:00:45
@M-jay:
I have tried to replace it and now I get this:
Quote:
We do not allow hybrid, we except v1 while others catch up but use v2 when possible

and yes I have made the torrent with qTorrent?
2022-02-16 23:37:07
Got it to work. Thanks.

But when I try to see the file list in a torrent I get a
Quote:
Oops somwthing went wrong, Admin have been notified if this continues please contact a member of staff. Thank you
Redirecting ...  [ link ]
2022-02-17 03:49:45
Patience is necessary. I stayed awake 3 full nights until 6am to pull this off - mind you, I did take rest during the day. Coding tired sucks and it always effects variable/function naming, and not so much the goal or logic at hand lol sloppy finger tips.

Parser - Upload works across all versions 100%
Details page - File list (with directories) work across all versions 100%
Vouchers (my work) - filters from list and activates feature 100%

Anyone need any help porting any of that to your TT edition - do PM me and I can assist - but this really should be a class before I do any further work. Right now, its all put together fairly well, and even allowed me to remove a lot of my old code that was so-so to behind with - Thank you ALL for your help and work on this. 😉

I can't find a single tracker script that even supports V2 out there, so this should be a milestone for the community!

2022-02-17 07:15:12
@STorrents2020: Sorry to say, but have no idea what you are talking about lol ^^

I can't see the torrent files on a torrent detail.?
And now the TMDB is not with me...
I get no cover on the torrent when the TMDB link is inserted? :/
(It looks like this:)
2022-02-17 11:53:49
Have you changed settings in app/config/config.php

// TMDB
define('_TMDBAPIKEY', 'Place_Api_Key_Here'); // Place Key Here ////////
define('_TMDBLANG', 'en'); // TMDB Language
define('_TMDBDEBUG', false);


Do you have tmdb account, you find key in settings/api
https://www.themoviedb.org/settings/api

You need to check cat name eg Movies
define('MovieCats', array('Movies')); // movie cats eg array('Movies','MoviesHD')
define('SerieCats', array('Apps')); // serie cat eg array('Anime','tv')
// TMDB
Last edited by M-jay warn on 2022-02-17 12:25:19
2022-02-17 19:51:41
define('MovieCats', array('Movies')); // movie cats eg array('Movies','MoviesHD')
define('SerieCats', array('Apps')); // serie cat eg array('Anime','tv')
// TMDB


I think this is the problem, but not sure. I will test in a bit.
The key is set in correctly.
2022-02-17 20:08:39
Now it's reading the key, but it's still not showing the cover in the torrent?

When i try to "show image in a new tap" it just shows a link called
Quote:
data:;base64,
?
Last edited by AllTheWay on 2022-02-17 20:11:01
2022-02-18 13:49:07
Which means base64_encode() failed given the variable it was told to read. Sounds like a database empty field. This is why I use ternary's, so it returns a condition if the first failed, and reduces fatal errors if the function is designed to halt compiler on empty variable. In this case, its useful to check if empty + check if string and always.. trim() the final result - even trim(base64_encode($var))
2022-02-18 15:33:36
Delete the row from the table because you tried uploading without api key the data will be empty and the cache


Or try new upload
Last edited by M-jay warn on 2022-02-18 18:19:47
2022-02-19 03:07:04
I have tried all I could, but with no luck. Still gives me the same error and the database TMDB link looks fine. All seems to look right and the TMDB link works (if I click the little TMDB logo under the torrent).?
2022-02-19 04:33:52
All is working after the update. Thanks for your help!
Amazing job you made on this.!
Last edited by AllTheWay on 2022-02-19 04:52:42
2022-02-19 06:04:56
Your welcome,  any problems let us know, all testing is finished but might need odd tweek  👍
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728