Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic update function over RSS #141

Open
nicoboss opened this issue Jan 17, 2015 · 11 comments
Open

Automatic update function over RSS #141

nicoboss opened this issue Jan 17, 2015 · 11 comments

Comments

@nicoboss
Copy link

https://github.com/nicoboss/KickassCopy/tree/master/DB%20%20RSS-Feed%20updater

Today I finally released the first 100% automatic update function over RSS for the OpenBay project. The php script is based on http://www.gaijin.at/scrphprssreader.php but supports only RSS now but I’ll add Atom and RDF soon. It should work on every DB dump in the OpenBay scheme but I’ve only tested it on the all in one (isohuntto/openbay-db-dump#12) and the kickass dump (isohuntto/openbay-db-dump#7). And sorry that the commands are in German. I’ll translate it to English as soon as I’ve finished the Atom and RDF thing.

How to install:

  1. Download the “DB RSS-Feed updater” Folder of the link on the top
  2. Open the php file and fill in your SQL login data and the RSS site you would like to use. In case of default use https://kickass.so/new/rss/. For Some feeds I recommend to the command to relieve the RSS and your server.
  3. Upload the php and css file to your server on some place that wasn’t blocked by .htaccess.
  4. Start the php script or put it into planed task (don’t forget to remove the meta reload) if your server supports this. This depends a lot on your server and if it supports meta refresh in a background task. As an alternative there are also other time based reload commands in JavaScript or php.

Notice that if your server isn’t 24/7 h on then you won’t get the new torrent that would be released if it is OFF. Please report bugs in my repository. If you have any questions feel free to ask.

@TPBT-OFFICIAL
Copy link

Tested seems to be working completly fine :)
Tested at https://tpbt.org

ALSO check this :) https://tpbt.org/blog/dynamic-content

@TPBT-OFFICIAL
Copy link

There seems to be just a little problem.... its not a like a big problem but it may affect some people... every torrent goes to the category "other"
Also since i didn't know how to keep it always taking torrents i just got a windows vps i had and opened firefox and put auto refresh :P

@nicoboss
Copy link
Author

I fixed the no category_id bug. Thanks @TPBT-OFFICIAL for reporting this. I had forgotten to implement the conversion from the category name into the category id. The category name will be written into tags. The solution over VPS is might not the best solution because of wasting of resources but it works :D

@TPBT-OFFICIAL
Copy link

The vps is just my virtual place really its where i have most of the things having a firefox tab opened auto refreshing doesn't use that much resources anyway :P

I also updated the script for my website it seems to be working flawlessly now :)

@mywish1
Copy link

mywish1 commented Jan 18, 2015

@nicoboss can you help me i need your help how to install this script and how dump database over my the piratebay website please help me if possible give me your skype id thanks @TPBT-OFFICIAL he is also very nice person i specially thanks to tpbt-official

@nicoboss
Copy link
Author

I found another bug in my script. Addslashes doesn't use the " before and after the string. Sorry for that. To remove the useless quotes from the wrong created names you can use the following SQL script:
UPDATE torrent.torrents
SET name = TRIM(BOTH '"' FROM name)
WHERE created_at >'2015-17-01';
Please update my script to the latest version to avoid this bug.

@mywish1 My Skype name is Nico Rezack. You can chat and talk with me but you might have to wait sometimes for me because I have to do a lot of other things. I also allow the other members of this project to add me on Skype. My English isn’t perfect because my mother tongue is German but it’ll be enough to communicate.

@TPBT-OFFICIAL
Copy link

@nicoboss The script has been updated now on my website! I'll also add you on skype. :)

@TPBT-OFFICIAL
Copy link

@nicoboss After i updated the script the torrents don't update anymore, why is that?

@mywish1
Copy link

mywish1 commented Jan 18, 2015

@nicoboss i added you at skype i m waiting for you and i need some help in sphinx to config it i already installed sphinx in my server but there is some issue @TPBT-OFFICIAL that guy helping me he is really really nice person i really impressed with his style of help and still need more help to setup my piratebay site alive thanks

@nicoboss
Copy link
Author

@TPBT-OFFICIAL I tested the new version on two servers and didn't have any problems. Are you sure that you filled in your correct MySQL login data? And is there any error?

@ghost
Copy link

ghost commented Jan 18, 2015

tested also, and working nice.
I've added you in skype nicoboss to ask a few questions.
thank you so far for the great contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants