SA-MP Forums Archive
[FilterScript] Music Searcher and Reproducer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Music Searcher and Reproducer (/showthread.php?tid=326894)



Music Searcher and Reproducer - richardcor91 - 19.03.2012

NOTE: This FS doesn't reproduce 4shared songs because it requires login.

UPDATE: Now names of songs found in search list!
Note: This filterscript only works with the current mp3skull webpage code.

Hi guys! I present you my new filterscript: Music Searcher and Reproducer!

What it does?
This FS is able to search music links in mp3skull website with DracoBlue's pwncurl 0.1 plugin (only works with linux) and reproduce songs with default samp functions.

How to use it?
It's simple: just type /music [name of song to search] and it will search for any existing songs with the specified name.

Picture:


Bugs?
I think there's not. Anyway, report here if you found some.
You can also change array sizes if you find them too big.

Download:
Pastebin: http://pastebin.com/Eqmh0v2T
Solidfiles: http://solidfiles.com/d/66e01b4807/

Any doubt ask here :P
Hope you like it!
Riccor


Re: Music Searcher and Reproducer - Jekazzz - 19.03.2012

PHP код:
if(content[f] == 'h' && content[f+1] == 't' && content[f+2] == 't' && content[f+3] == 'p'
                        
&& content[f+4] == ':' && content[f+5] == '/' && content[f+6] == '/')
                        { 
to
PHP код:
if(strfind(content"http://"true) == f// f - Position of first symbol 



Re: Music Searcher and Reproducer - richardcor91 - 19.03.2012

Jekazzz, strfind can return multiple values? I mean, if in content array is written "bla bla http:// and http://", it will return 8 and 20?


Re: Music Searcher and Reproducer - TheArcher - 19.03.2012

Well, so it downloads songs from your research and reproduce them?


Re: Music Searcher and Reproducer - richardcor91 - 19.03.2012

It doesn't download: I use pwncurl plugin to read all data from the webpage and then I search inside that data for music links.
The only problem is that I don't know how can I read the title of each music, that's why I only show links in the list.


Re: Music Searcher and Reproducer - TheArcher - 19.03.2012

Quote:
Originally Posted by richardcor91
Посмотреть сообщение
It doesn't download: I use pwncurl plugin to read all data from the webpage and then I search inside that data for music links.
The only problem is that I don't know how can I read the title of each music, that's why I only show links in the list.
That might a problem but it's freaking amazing good job


Re: Music Searcher and Reproducer - rbN. - 19.03.2012

I have a 'songfinder' aswell, even using MP3Skull, but you are using it totally wrong with pwncurl !


Re: Music Searcher and Reproducer - richardcor91 - 19.03.2012

So tell me why.
Btw, I think I found a way to get music names :P


Respuesta: Music Searcher and Reproducer - master-arg - 19.03.2012

Fucking amazing fs men, the best, its work very well for me. gratz

[MWR]Daron[E] here xd


Re: Music Searcher and Reproducer - richardcor91 - 19.03.2012

Ty man :P
Btw, I've just did some little fixes and removed some useless code.
Anyway, I still accept suggestions to improve it and I would appreciate if RobinOwnz answered me :/