Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
*.*~

Series
error.log
parameters.yml

.idea/
/vendor/
15 changes: 15 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "adst/adst",
"require": {
"symfony/yaml": "dev-master"
},
"authors": [
{
"name": "fabex"
},
{
"name": "lesmyrmidons"
}
],
"minimum-stability": "dev"
}
68 changes: 68 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,185 changes: 0 additions & 1,185 deletions error.log

This file was deleted.

10 changes: 5 additions & 5 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

require_once('vendor/autoload.php');
require_once 'lib/BetaSerie.class.php';
require_once 'lib/Torrent.class.php';
require_once 'lib/Tools.lib.php';
Expand Down Expand Up @@ -29,7 +29,7 @@
$nbSerie = 0;
?>

<!DOCTYPE html">
<!DOCTYPE html>
<html>
<head>
<title>Automatic Download Series Torrent</title>
Expand Down Expand Up @@ -87,7 +87,7 @@
<tr>
<td class="serie">
<a href="listSeason.php?serie=<?php echo urlencode($serieUrl) ?>">
<?php echo $serie?>
<?php echo $serie; ?>
</a>
</td>
<td><?php echo $season?></td>
Expand Down Expand Up @@ -172,7 +172,7 @@ function dlSubtitle(link, serie, season, episode) {
'episode' : episode
},
success: function(data){

}
});
return true;
Expand All @@ -188,7 +188,7 @@ function upAsDownloaded(serie, season, episode) {
'episode' : episode
},
success: function(data){

}
});
return true;
Expand Down
3 changes: 2 additions & 1 deletion lib/ThePirateBay.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ private static function my_file_get_contents ($url) {
}

public static function getTorrent($serie, $number) {
$serie = preg_replace('/\(\d+\)/', '', $serie);
return self::getBetterTorrent($serie.' '.$number);
}

Expand All @@ -27,4 +28,4 @@ static private function getBetterTorrent($data) {
return '';
}
}
}
}
5 changes: 4 additions & 1 deletion lib/Tools.lib.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Symfony\Component\Yaml\Yaml;

function debug () {
echo '<pre>';
$numargs = func_num_args();
Expand All @@ -10,6 +12,7 @@ function debug () {
echo '</pre>';
}

$yaml = Yaml::parse(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'parameters.yml');

$betaSerie = new BetaSerie();
$betaSerie->memberAuthentication('login', 'mot_de_passe');
$betaSerie->memberAuthentication($yaml['beta_series']['login'], $yaml['beta_series']['password']);
11 changes: 6 additions & 5 deletions listSerie.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php
require_once('vendor/autoload.php');
require_once 'lib/BetaSerie.class.php';
require_once 'lib/Tools.lib.php';

$serie = $betaSerie->memberSeries('fabex');
$serie = $betaSerie->memberSeries($yaml['beta_series']['login']);

?>

<!DOCTYPE html">
<!DOCTYPE html>
<html>
<head>
<title>Automatic Download Series Torrent - <?php echo $serieDisplay->show->title; ?></title>
Expand All @@ -28,9 +29,9 @@
</div>
</div>
</div>

<h1> Liste de mes Séries</h1>

<div class="content">
<div class="span12">
<ul>
Expand All @@ -44,6 +45,6 @@
</ul>
</div>
</div>

</body>
</html>
3 changes: 3 additions & 0 deletions parameters.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
beta_series:
login: 'test'
password: 'test'
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Cette application vous permez de pouvoir manager vos séries :
- cd ~/webroot
- mkdir adst
- git clone git@github.com:Fabex/ADST.git adst
- Si vous ne possédez pas composer.phar, installez le :
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin
- composer.phar install

### Création du virtualhost

Expand Down Expand Up @@ -65,7 +68,7 @@ Cette application vous permez de pouvoir manager vos séries :
- cd ~/webroot/adst

- ln -s /path/to/series/folder Series


## En image

Expand Down