This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
47,415 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
builds/ | ||
src/**/build | ||
*.dlm | ||
*.host | ||
*.aum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
BUILDDIR := builds | ||
|
||
.PHONY: all clean distribute | ||
all: bananan.aum lyricwiki.aum fasttorrent.dlm kinozal.dlm nnmclub.dlm pornolab.dlm rutor.dlm rutracker.dlm tpb.dlm youtube.dlm kinozal.host nnmclub.host pornolab.host rutracker.host | ||
|
||
bananan.aum: ${BUILDDIR} | ||
$(MAKE) -C src/au-bananan && \ | ||
cp src/au-bananan/bananan.aum ${BUILDDIR} | ||
|
||
lyricwiki.aum: ${BUILDDIR} | ||
$(MAKE) -C src/au-lyricwiki && \ | ||
cp src/au-lyricwiki/lyricwiki.aum ${BUILDDIR} | ||
|
||
fasttorrent.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-fasttorrent && \ | ||
cp src/bt-fasttorrent/fasttorrent.dlm ${BUILDDIR} | ||
|
||
kinozal.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-kinozal && \ | ||
cp src/bt-kinozal/kinozal.dlm ${BUILDDIR} | ||
|
||
nnmclub.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-nnmclub && \ | ||
cp src/bt-nnmclub/nnmclub.dlm ${BUILDDIR} | ||
|
||
pornolab.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-pornolab && \ | ||
cp src/bt-pornolab/pornolab.dlm ${BUILDDIR} | ||
|
||
rutor.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-rutor && \ | ||
cp src/bt-rutor/rutor.dlm ${BUILDDIR} | ||
|
||
rutracker.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-rutracker && \ | ||
cp src/bt-rutracker/rutracker.dlm ${BUILDDIR} | ||
|
||
tpb.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-tpb && \ | ||
cp src/bt-tpb/tpb.dlm ${BUILDDIR} | ||
|
||
youtube.dlm: ${BUILDDIR} | ||
$(MAKE) -C src/bt-youtube && \ | ||
cp src/bt-youtube/youtube.dlm ${BUILDDIR} | ||
|
||
kinozal.host: ${BUILDDIR} | ||
$(MAKE) -C src/ht-kinozal && \ | ||
cp src/ht-kinozal/kinozal.host ${BUILDDIR} | ||
|
||
nnmclub.host: ${BUILDDIR} | ||
$(MAKE) -C src/ht-nnmclub && \ | ||
cp src/ht-nnmclub/nnmclub.host ${BUILDDIR} | ||
|
||
pornolab.host: ${BUILDDIR} | ||
$(MAKE) -C src/ht-pornolab && \ | ||
cp src/ht-pornolab/pornolab.host ${BUILDDIR} | ||
|
||
rutracker.host: ${BUILDDIR} | ||
$(MAKE) -C src/ht-rutracker && \ | ||
cp src/ht-rutracker/rutracker.host ${BUILDDIR} | ||
|
||
$(BUILDDIR): | ||
mkdir -p ${BUILDDIR} | ||
|
||
clean: | ||
rm -rf ${BUILDDIR} | ||
$(MAKE) clean -C src/au-bananan | ||
$(MAKE) clean -C src/au-lyricwiki | ||
$(MAKE) clean -C src/bt-fasttorrent | ||
$(MAKE) clean -C src/bt-kinozal | ||
$(MAKE) clean -C src/bt-nnmclub | ||
$(MAKE) clean -C src/bt-pornolab | ||
$(MAKE) clean -C src/bt-rutor | ||
$(MAKE) clean -C src/bt-rutracker | ||
$(MAKE) clean -C src/bt-tpb | ||
$(MAKE) clean -C src/bt-youtube | ||
$(MAKE) clean -C src/ht-kinozal | ||
$(MAKE) clean -C src/ht-nnmclub | ||
$(MAKE) clean -C src/ht-pornolab | ||
$(MAKE) clean -C src/ht-rutracker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,125 @@ | ||
# synox | ||
Synology plugins repository | ||
# Synox | ||
------- | ||
Unofficial synology plugins repository. | ||
|
||
Required | ||
======== | ||
* DSM 5.1 | ||
|
||
Includes | ||
======== | ||
###### Audio Station Modules | ||
* Bananan *(Translate song text into Russian Language to http://bananan.org)* | ||
* LyricWiki *(Song full-text search to http://lyrics.wikia.com)* | ||
|
||
###### Download Station Search Modules | ||
* Fast-Torrent *(Search torrent files to http://fast-torrent.ru)* | ||
* Kinozal *(Search torrent files to http://kinozal.tv)* | ||
* NoNaMe-Club *(Search torrent files to http://nnm-club.me)* | ||
* Pornolab *(Search torrent files to http://pornolab.net)* | ||
* Rutor *(Search torrent files to http://rutor.org)* | ||
* Rutracker *(Search torrent files to http://rutracker.org)* | ||
* The Pirate Bay *(Search torrent files to http://thepiratebay.se)* | ||
* YouTube *(Search broadcast to http://youtube.com)* | ||
|
||
###### Download Station Host Modules | ||
* Kinozal *(Download torrent files to http://kinozal.tv)* | ||
* NoNaMe-Club *(Download torrent files to http://nnm-club.me)* | ||
* Pornolab *(Download torrent files to http://pornolab.net)* | ||
* Rutracker *(Download torrent files to http://rutracker.org)* | ||
|
||
HOWTO Use | ||
========= | ||
1. Build modules to get tar.gz files | ||
2. Login to you Synology with admin privileges | ||
3. Open Download Station or Audio Station package | ||
4. Go to Settings area | ||
|
||
###### For Download Station Search Module | ||
1. Go to File Search for Do, found on left hand side | ||
2. Click add and locate required **~/synox/builds/*.dlm** file | ||
3. Once done click edit and add your account details | ||
|
||
###### For Download Station Host Module | ||
1. Go to File Hosting for Do, found on left hand side | ||
2. Click add and locate required **~/synox/builds/*.host** file | ||
3. Once done click edit and add your account details | ||
|
||
###### For Audio Station | ||
1. Go to Plugins Text for Do, found on top hand side | ||
2. Click add and locate **~/synox/builds/*.aum** | ||
3. Move plugins in the list to change their priority use | ||
|
||
Build | ||
===== | ||
```bash | ||
cd ~ && git clone https://github.com/demorfi/synox.git synox && cd synox | ||
make && ls builds -lX | ||
|
||
# rebuild | ||
make clean && make && ls builds -lX | ||
``` | ||
|
||
or use tar gz command in directory src. | ||
|
||
Debug | ||
===== | ||
#### Download Station Search Module | ||
```bash | ||
cd ~ && git clone https://github.com/demorfi/synox.git synox && cd synox | ||
php syno.php bt "module name" "search query" ["username"] [:"password"] | ||
|
||
# example | ||
php syno.php bt rutracker "Silent Hill" "test" "123pwd" | ||
``` | ||
|
||
#### Download Station Host Module | ||
```bash | ||
cd ~ && git clone https://github.com/demorfi/synox.git synox | ||
cd synox | ||
php syno.php ht "module name" "url torrent file" ["username"] [:"password"] | ||
|
||
# example | ||
php syno.php ht rutracker "http://dl.rutracker.org/forum/dl.php?t=9999999" "test" "123pwd" | ||
``` | ||
|
||
#### Audio Station Lyrics Module | ||
```bash | ||
cd ~ && git clone https://github.com/demorfi/synox.git synox | ||
cd synox | ||
php syno.php au "module name" "artist song" "title song" | ||
|
||
# example | ||
php syno.php au lyricwiki "30 Seconds To Mars" "93 Million Miles" | ||
``` | ||
|
||
#### Debug working module | ||
1. Enable debug mode **(use [opt:])** | ||
2. Read log file /tmp/(**ht-**,**bt-**)module-name.log | ||
|
||
Tips and tricks | ||
=============== | ||
* Use a special search request **[opt:]query** for advanced search | ||
* Use as needed option in the account name **[opt:]username** for advanced mode | ||
* Use sort on domain name after searching | ||
|
||
Available options [opt:] | ||
=============== | ||
* h-host ***(module name for single search, use only search toolbar)*** | ||
* p-page ***(max page search)*** | ||
* d-1 ***(use debug mode)*** | ||
#### Example | ||
* [opt:h-rutracker]In Time ***(for only search)*** | ||
* [opt:p-2,h-rutracker]In Time ***(for search only host and max search page)*** | ||
* [opt:d-1,h-rutracker]In Time ***(for enable debug mode)*** | ||
* [opt:p-2]In Time ***(max search page)*** | ||
|
||
Change Log | ||
========== | ||
v1.0 - Feb 26, 2015 | ||
-------------------- | ||
* Initialize repository version 1.0 | ||
|
||
License | ||
======= | ||
Synox is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<?php | ||
|
||
/** | ||
* Synox Abstract. | ||
* | ||
* @author demorfi <[email protected]> | ||
* @version 1.0 | ||
* @source https://github.com/demorfi/synox | ||
* @license http://opensource.org/licenses/MIT Licensed under MIT License | ||
*/ | ||
class SynoAbstract | ||
{ | ||
|
||
/** | ||
* Lyric id. | ||
* | ||
* @var string | ||
* @access private | ||
*/ | ||
private $lyricsId; | ||
|
||
/** | ||
* Get id lyric. | ||
* | ||
* @return string | ||
* @access public | ||
*/ | ||
public function getLyricsId() | ||
{ | ||
return ($this->lyricsId); | ||
} | ||
|
||
/** | ||
* Add torrent file in list. | ||
* | ||
* @param string $title Title torrent | ||
* @param string $download Url to download torrent | ||
* @param float $size Size files in torrent | ||
* @param string $datetime Date create torrent | ||
* @param string $page Url torrent page | ||
* @param string $hash Hash item | ||
* @param int $seeds Count torrent seeds | ||
* @param int $leeches Count torrent leeches | ||
* @param string $category Torrent category | ||
* @access public | ||
* @return void | ||
*/ | ||
public function addResult($title, $download, $size, $datetime, $page, $hash, $seeds, $leeches, $category) | ||
{ | ||
var_dump( | ||
[ | ||
'result' => [ | ||
'title' => $title, | ||
'download' => $download, | ||
'size' => $size, | ||
'datetime' => $datetime, | ||
'page' => $page, | ||
'hash' => $hash, | ||
'seeds' => $seeds, | ||
'leeches' => $leeches, | ||
'category' => $category | ||
] | ||
] | ||
); | ||
} | ||
|
||
/** | ||
* Add torrent json in list. | ||
* | ||
* @param string $response Content | ||
* @param string $rersultKey Key | ||
* @param array $fieldmapping Mapping json | ||
* @access public | ||
* @return void | ||
*/ | ||
public function addJsonResults($response, $rersultKey, $fieldmapping) | ||
{ | ||
var_dump( | ||
[ | ||
'json' => [ | ||
'response' => $response, | ||
'rersult-key' => $rersultKey, | ||
'field-mapping' => $fieldmapping | ||
] | ||
] | ||
); | ||
} | ||
|
||
/** | ||
* Add torrent rss in list. | ||
* | ||
* @param string $response Content | ||
* @access public | ||
* @return void | ||
*/ | ||
public function addRssResult($response) | ||
{ | ||
var_dump( | ||
[ | ||
'rss' => [ | ||
'response' => $response | ||
] | ||
] | ||
); | ||
} | ||
|
||
/** | ||
* Add song in list. | ||
* | ||
* @param string $artist Artist song | ||
* @param string $title Title song | ||
* @param string $id Id song | ||
* @param string $partialLyrics Partial lyric song | ||
* @access public | ||
* @return void | ||
*/ | ||
public function addTrackInfoToList($artist, $title, $id, $partialLyrics) | ||
{ | ||
var_dump( | ||
[ | ||
'track-info' => [ | ||
'artist' => $artist, | ||
'title' => $title, | ||
'id' => $id, | ||
'partialLyrics' => $partialLyrics | ||
] | ||
] | ||
); | ||
$this->lyricsId = $id; | ||
} | ||
|
||
/** | ||
* Add lyrics in list. | ||
* | ||
* @param string $lyric Lyric content | ||
* @param string $id Lyric id | ||
* @access public | ||
* @return void | ||
*/ | ||
public function addLyrics($lyric, $id) | ||
{ | ||
var_dump( | ||
[ | ||
'lyrics' => [ | ||
'lyric' => $lyric, | ||
'id' => $id | ||
] | ||
] | ||
); | ||
} | ||
} |
Oops, something went wrong.