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
Debts of seed
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Support

2022-09-06 21:09:53
I know someone had the same problem with this but couldn't find it in the forum.

User has downloaded a torrent and after a certain time stopped seeding, after a few hours that person starts seeding again but then he gets another one on his list that looks like this.

Suggestions, help suggestions, please




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-06 21:56:23
internal ? that is normal after 1 hour cleanup removes peer from peers table when user connects again after 1 hour new peer is added to table

what page is that from ? because for current connected peers you just get from peers table

i would check peer table to check any difference between them, search by torrent id, then user id. also check last action row

after 1 hour any old peer should be removed from table lets check that first
2022-09-16 22:21:32
Resolved and BIG thanks to you, M-Jay


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-09-17 12:51:20
Happy to help mate

For anyone else who experiences this the unique key was missing
UNIQUE KEY `tid_uid` (`tid`,`uid`),
2022-09-18 17:35:28
my math isn't too bad but this must be something wrong but can't find WHERE

suggestions, advice, help




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-06-16 19:34:24
@ Botanicar How did you manage DEBT page? i get Sorry nothing to show this time... even if i know that i have Thanx in advance or can you share your debt.php?
 Edit: i have did it thank you
Last edited by djlive on 2023-06-17 08:20:09
2023-06-17 17:38:24
I cant follow this correctly. I want to assume you guys are talking about the peer table removed when torrent stopped, when started again (seeding) -- what happens exactly?

Events in a nutshell:

Paused - Denying connections from other peers by using a WHERE clause where peers are read from table. A "event" column is needed to do this effectively in peers table. You read/write to that event.

Stopped - Remove row from peers table. Insert when client starts/resumes seeding. Client will repopulate the data @ the tracker announcement, whether it is completed or still downloading. So the peer row will get its values already.

This is to say, you check if seeder or not

$seeder = (int) $_GET['left'] === 0 ? 'yes' : 'no';


Every client reports left key. When you start a torrent, your left key is the total bytes of the torrent. As you download, this reduces based on the bytes downloaded. When this reaches 0, its completed. So you update the table accordingly.

Its all pretty simple. I live in my announce file lol so I can always help here.

.
2023-06-17 18:52:47
@STorrents no it just show the debts (if the user does not meet the requirements ex. ratio 1:1 or seedtime 48 H it will show it there, if the requrements are meet then it will disapear ).
i mean thats how i did it
2023-06-17 21:32:31
Oh that makes more sense!
2023-06-18 00:23:40
ill put the code here maybe someone needs it . If error just ping me :P

This mod shows how much you have to make to one torrent according to your site requirements (ex: Ratio 1:1 or seed time in this case 4 days):  

Need snatchlist mod https://torrenttrader.uk/post/9959

in blocks/login_block.php

after
echo "<tr><td style='font:bold 12px Tahoma' class=table_head width=100% align=left><img src='images/lb-profile.png' border=0> <a href=account.php>".T_("YOUR_PROFILE")."</a></td></tr>";


add:
echo "<tr><td style='font:bold 12px Tahoma' class=table_head width=100% align=left><img src='images/lb-debt.png' border=0> <a href=debts.php>".T_("DEBTS_OF_SEEDING")."</a></td></tr>";


in language older add:


$LANG["DEBTS_OF_SEEDING"] = "Your Debt of Seed";
$LANG["DEBT_OF_SEED"] = "Debt of Seed";
$LANG["DEBT_OF_SEED_FOR"] = "Debt of Seed for: ";
$LANG["DEBTS_OF_SEEDING_MESSAGE"] = "This page displays all downloaded torrents which did not meet the minimum seeding limit</b>.
<div style='margin-top:5px'>These torrents represents your debt of seeding.</div></br>You need to keep seed them not to get Hit and Run Warn!";


If your requriments are set to 48 hours(2 days) of seed just modify the line in debts.php:
WHERE (ltime < '345590' || snatched.uload > snatched.dload) AND users.status = 'confirmed' AND torrents.banned = 'no' AND snatched.uid = '$uid' 


should be like this:
WHERE (ltime < '172800' || snatched.uload > snatched.dload) AND users.status = 'confirmed' AND torrents.banned = 'no' AND snatched.uid = '$uid' 


 

and the attached file upload to /root
debts.php
Download
Last edited by djlive on 2023-06-18 00:26:06
2024-12-28 16:12:58
Big Thanks ! ♫
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: 10
  • Members: 0
  • Guests online: 10
  • Comments: 3
  • Messages: 1,728