Skip to content

Commit 5a44963

Browse files
authored
Merge pull request #322 from lardbit/rt-api-update
Rotten Tomatoes API Url
2 parents 0d7056e + 355a56e commit 5a44963

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/frontend/src/app/torrent-details/torrent-details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<td>
6060
<button *ngIf="result.torrent" class="btn btn-warning btn-sm" (click)="blacklistRetry(result.watchMedia, true)" placement="top" ngbTooltip="Blacklist torrent and retry"><span class="oi oi-ban"></span></button>
6161
<button *ngIf="!result.torrent && result.watchMedia.collected" class="btn btn-danger btn-sm" (click)="blacklistRetry(result.watchMedia)" placement="top" ngbTooltip="Retry downloading another torrent"><span class="oi oi-loop-circular"></span></button>
62-
<button *ngIf="!result.torrent && !result.watchMedia.collected" class="btn btn-info btn-sm" (click)="blacklistRetry(result.watchMedia)" placement="top" ngbTooltip="Force retry now"><span class="oi oi-action-redo"></span></button>
62+
<button *ngIf="!result.torrent && !result.watchMedia.collected && result.watchMedia.last_attempt_date" class="btn btn-info btn-sm" (click)="blacklistRetry(result.watchMedia)" placement="top" ngbTooltip="Force retry now"><span class="oi oi-action-redo"></span></button>
6363
</td>
6464
</ng-container>
6565
</tr>

src/nefarious/api/views.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,14 +465,14 @@ class DiscoverRottenTomatoesMediaView(views.APIView):
465465
- audience_highest
466466
467467
Examples:
468-
https://www.rottentomatoes.com/napi/browse/movies_at_home/genres:action?page=1 ("action" genre, page 1)
469-
https://www.rottentomatoes.com/napi/browse/movies_at_home/critics:fresh?page=1 ("fresh", page 1)
470-
https://www.rottentomatoes.com/napi/browse/movies_at_home/critics:certified_fresh,fresh?page=1 (fresh OR certified fresh, page 1)
471-
https://www.rottentomatoes.com/napi/browse/movies_at_home/sort:popular?page=1 (sort popular)
472-
https://www.rottentomatoes.com/napi/browse/movies_at_home/critics:certified_fresh~sort:newest?page=1 (certified fresh, sorted, page 1)
468+
https://www.rottentomatoes.com/cnapi/browse/movies_at_home/genres:action?page=1 ("action" genre, page 1)
469+
https://www.rottentomatoes.com/cnapi/browse/movies_at_home/critics:fresh?page=1 ("fresh", page 1)
470+
https://www.rottentomatoes.com/cnapi/browse/movies_at_home/critics:certified_fresh,fresh?page=1 (fresh OR certified fresh, page 1)
471+
https://www.rottentomatoes.com/cnapi/browse/movies_at_home/sort:popular?page=1 (sort popular)
472+
https://www.rottentomatoes.com/cnapi/browse/movies_at_home/critics:certified_fresh~sort:newest?page=1 (certified fresh, sorted, page 1)
473473
"""
474474

475-
API_URL = 'https://www.rottentomatoes.com/napi/browse/{type}/'
475+
API_URL = 'https://www.rottentomatoes.com/cnapi/browse/{type}/'
476476

477477
@method_decorator(cache_page(CACHE_DAY))
478478
def get(self, request, media_type: str):

0 commit comments

Comments
 (0)