Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e549b9a
Change font in omicron and charisma templates, adjust the look of cov…
DariusIII Sep 11, 2015
7a76863
Switch font from Lato to Roboto Condensed.
DariusIII Sep 11, 2015
987314e
Add scripts to pull covers and update traktid.
DariusIII Sep 11, 2015
009f7ec
Add traktid to movieinfo table.
DariusIII Sep 11, 2015
934abe0
Change the way deletion of releases is done.
DariusIII Sep 11, 2015
c48f9f1
Fix the call to AdminPage.
DariusIII Sep 11, 2015
f67fe28
Add support for traktid into releaseas and movies. Add script to popu…
DariusIII Sep 11, 2015
36b838b
Switch to non condensed version of Roboto font (Roboto instead of Rob…
DariusIII Sep 11, 2015
44457e4
Update main css of omicron template(AdminLTE.css) to version 2.3.0.
DariusIII Sep 11, 2015
8dbf6c8
Add last activity tracking on blacklists.
DariusIII Sep 12, 2015
0d59479
Add the patch.
DariusIII Sep 12, 2015
e6b710f
Check if error is set in templates.
DariusIII Sep 12, 2015
830e324
Update binaryblacklist pages in admin area.
DariusIII Sep 12, 2015
0dd2319
Fix the wrong table name.
DariusIII Sep 13, 2015
f033ad5
Add searchboxes/filters to cover pages in omicron/charisma templates.
DariusIII Sep 14, 2015
8955a4e
Fix the call to OPTYPE binaries constant.
DariusIII Sep 15, 2015
36cfe42
Add newzdash to nntmux.
DariusIII Sep 15, 2015
a158bbb
Add base TV Class to make the addition of a new TV scraper easier
DariusIII Sep 15, 2015
36804bc
Merge remote-tracking branch 'origin/dev' into dev
DariusIII Sep 15, 2015
2828298
Declare catWhere property.
DariusIII Sep 15, 2015
8895cdf
Remove obsoleted use class statement.
DariusIII Sep 16, 2015
3ef7762
Fix deletion of releases.
DariusIII Sep 16, 2015
f219773
Update the rage-edit page.
DariusIII Sep 16, 2015
fbe31e1
Fix for release deletion errors.
DariusIII Sep 16, 2015
f4c0840
update import.php in misc/testing folder. Remove scripts and classes…
DariusIII Sep 16, 2015
7c21048
Rename PProcess class into PostProcess, adjust other scripts and clas…
DariusIII Sep 16, 2015
36c1cb4
Remove references to now non-existant newznab default PostProcess class.
DariusIII Sep 16, 2015
32f980d
Remove extra flood checks from BasePage.
DariusIII Sep 17, 2015
f0ffcaa
Update api page.
DariusIII Sep 17, 2015
72f0a5d
Remove duplicated json decode from api.
DariusIII Sep 18, 2015
6f16383
Fix api json output.
DariusIII Sep 18, 2015
34d0dc7
rename utf8ize function and move it to Utility class. Remove referenc…
DariusIII Sep 21, 2015
011dc26
Merge remote-tracking branch 'origin/dev' into dev
DariusIII Sep 21, 2015
9901ba4
rename utf8ize function and move it to Utility class. Remove referenc…
DariusIII Sep 21, 2015
132d93c
Update the forgottenpassword page.
DariusIII Sep 21, 2015
195c289
Fix typos on login page that prevented forgottenpassword and register…
DariusIII Sep 22, 2015
59eecbe
Add PHPDOC comment to RequestID class.
DariusIII Sep 22, 2015
546e30a
Fix notices when editing releases.
DariusIII Sep 22, 2015
992b8a8
Remove true switch from AdminPage call.
DariusIII Sep 22, 2015
d222430
Move echooutput to parent class.
DariusIII Sep 22, 2015
fc14e2b
Fix wrong table name in getAlternate function.
DariusIII Sep 22, 2015
20a37d2
Improve X-DNZB-Failure headers support.
DariusIII Sep 23, 2015
aa1db30
Add failed count information to many of the pages as statistic info. …
DariusIII Sep 24, 2015
e09ca2b
Add the patch.
DariusIII Sep 24, 2015
a9ec606
Update the patch.
DariusIII Sep 24, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2015-09-24 DariusIII
- Add failed downloads count to releases.
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
If you want to contribute to newznab-tmux project, you should follow couple of simple rules:

1. Your pull requests (PR) should be named as follows: branch-username-shortdescription (i.e. dev-dariusiii-fixedshit).

2. For dev regexless branch PR need to be done for dev-regexless branch, for dev into dev branch.

3. Pull requests will not be accepted for master branch. They will be rejected.

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This project is licensed under GPLv2 license. Parts of the code have their own licenses and are in their respective folders.
48 changes: 48 additions & 0 deletions misc/testing/DB/populateTraktID.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php
//This script will update all records in the movieinfo table
require_once dirname(__FILE__) . '/../../../www/config.php';

use newznab\db\Settings;

$pdo = new Settings();
$trakt = new TraktTv(['Settings' => $pdo]);

$mreleases = $pdo->queryDirect(sprintf('SELECT id, imdbid FROM releases WHERE traktid = 0 AND imdbid IS NOT NULL AND imdbid != 0000000 ORDER BY id ASC'));
$treleases = $pdo->queryDirect(sprintf('SELECT id, rageid FROM releases WHERE traktid = 0 AND rageid NOT IN(0,-1,-2)'));
$mtotal = $mreleases->rowCount();
$ttotal = $treleases->rowCount();
$mcount = 0;
if ($mtotal > 0) {
echo $pdo->log->header("Updating Trakt ID for " . number_format($mtotal) . " movies.");
foreach ($mreleases as $rel) {
$mcount++;
$data = $trakt->movieSummary('tt' . $rel['imdbid'], 'min');
if ($data != false) {
if (isset($data['ids']['trakt'])) {
$pdo->queryExec(sprintf('UPDATE releases SET traktid = %s WHERE id = %s', $pdo->escapeString($data['ids']['trakt']), $pdo->escapeString($rel['id'])));
echo $pdo->log->info('Updated ' . $data['title'] . ' with Trakt ID:' . $data['ids']['trakt']);
}
}
}
echo $pdo->log->header('Updated ' . $mcount . ' movie(s).');
} else {
echo $pdo->log->info('No movies need updating');
}

$tcount = 0;
if ($ttotal > 0) {
echo $pdo->log->header("Updating Trakt ID for " . number_format($ttotal) . " shows.");
foreach ($treleases as $rel) {
$tcount++;
$data = $trakt->showSummary($rel['rageid'], 'min');
if ($data != false) {
if (isset($data['ids']['trakt'])) {
$pdo->queryExec(sprintf('UPDATE releases SET traktid = %s WHERE id = %s', $pdo->escapeString($data['ids']['trakt']), $pdo->escapeString($rel['id'])));
echo $pdo->log->info('Updated ' . $data['title'] . ' with Trakt ID:' . $data['ids']['trakt']);
}
}
}
echo $pdo->log->header('Updated ' . $tcount . ' show(s).');
} else {
exit($pdo->log->info('No shows need updating'));
}
28 changes: 28 additions & 0 deletions misc/testing/PostProc/getTrakt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
//This script will update all records in the movieinfo table
require_once dirname(__FILE__) . '/../../../www/config.php';

use newznab\db\Settings;

$pdo = new Settings();
$c = new ColorCLI();
$movie = new Movie(['Echo' => true, 'Settings' => $pdo]);


$movies = $pdo->queryDirect("SELECT imdbid FROM movieinfo WHERE traktid = 0 ORDER BY id ASC");
if ($movies instanceof \Traversable) {
echo $pdo->log->header("Updating Trakt ID info for " . number_format($movies->rowCount()) . " movies.");

foreach ($movies as $mov) {
$starttime = microtime(true);
$mov = $movie->updateMovieInfo($mov['imdbid']);

// tmdb limits are 30 per 10 sec, not certain for imdb
$diff = floor((microtime(true) - $starttime) * 1000000);
if (333333 - $diff > 0) {
echo "sleeping\n";
usleep(333333 - $diff);
}
}
echo "\n";
}
Loading