Skip to content

Commit

Permalink
Merge pull request #4285 from costaht/fix-imdb-id-rss
Browse files Browse the repository at this point in the history
(Fix) Leading zeros missing on IMDB URL in the RSS feed
  • Loading branch information
HDVinnie authored Oct 28, 2024
2 parents f141fb7 + ac5dc1d commit ee168a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/rss/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{{ __('common.anonymous') }} {{ __('torrent.uploader') }}
@endif<br>
@if (($torrent['category']['movie_meta'] || $torrent['category']['tv_meta']) && $torrent['imdb'] != 0)
IMDB Link:<a href="https://anon.to?http://www.imdb.com/title/tt{{ $torrent['imdb'] }}"
IMDB Link:<a href="https://anon.to?http://www.imdb.com/title/tt{{ \str_pad((string) $torrent['imdb'], \max(\strlen((string) $torrent['imdb']), 7), '0', STR_PAD_LEFT) }}"
target="_blank">tt{{ $torrent['imdb'] }}</a><br>
@endif
@if ($torrent['category']['movie_meta'] && $torrent['tmdb'] != 0)
Expand Down

0 comments on commit ee168a4

Please sign in to comment.