@ -102,9 +102,9 @@
< div class = " twelve wide left aligned column " >
< div class = " twelve wide left aligned column " >
< h2 >
< h2 >
% if details . monitored == ' True ' :
% if details . monitored == ' True ' :
< span data - tooltip = " Movie m onitored in Radarr" > < i class = " bookmark icon " > < / i > < / span >
< span data - tooltip = " Movie is M onitored in Radarr" > < i class = " bookmark icon " > < / i > < / span >
% else :
% else :
< span data - tooltip = " Movie unm onitored in Radarr" > < i class = " bookmark outline icon " > < / i > < / span >
< span data - tooltip = " Movie is not M onitored in Radarr" > < i class = " bookmark outline icon " > < / i > < / span >
% end
% end
{ { details . title } }
{ { details . title } }
< / h2 >
< / h2 >
@ -112,8 +112,8 @@
< div class = " four wide right aligned column " >
< div class = " four wide right aligned column " >
< div class = " ui right floated basic icon buttons " >
< div class = " ui right floated basic icon buttons " >
< button id = " scan_disk " class = " ui button " data - tooltip = " Scan disk for s ubtitles" data - inverted = " " > < i class = " ui inverted large compact refresh icon " > < / i > < / button >
< button id = " scan_disk " class = " ui button " data - tooltip = " Scan Disk For S ubtitles" data - inverted = " " > < i class = " ui inverted large compact refresh icon " > < / i > < / button >
< button id = " search_missing_subtitles_movie " class = " ui button " data - tooltip = " Download missing s ubtitles" data - inverted = " " > < i class = " ui inverted huge compact search icon " > < / i > < / button >
< button id = " search_missing_subtitles_movie " class = " ui button " data - tooltip = " Download Missing S ubtitles" data - inverted = " " > < i class = " ui inverted huge compact search icon " > < / i > < / button >
< %
< %
subs_languages = ast . literal_eval ( str ( details . languages ) )
subs_languages = ast . literal_eval ( str ( details . languages ) )
subs_languages_list = [ ]
subs_languages_list = [ ]
@ -124,10 +124,10 @@
end
end
% >
% >
% if subs_languages is not None :
% if subs_languages is not None :
< button class = " manual_search ui button " data - tooltip = " Manually search for s ubtitles" data - inverted = " " data - moviePath = " {{ details.path}} " data - scenename = " {{ details.scene_name}} " data - language = " {{ subs_languages_list}} " data - hi = " {{ details.hearing_impaired}} " data - forced = " {{ details.forced}} " data - movie_title = " {{ details.title}} " data - radarrId = " {{ details.radarr_id}} " > < i class = " ui inverted large compact user icon " > < / i > < / button >
< button class = " manual_search ui button " data - tooltip = " Manually Search For S ubtitles" data - inverted = " " data - moviePath = " {{ details.path}} " data - scenename = " {{ details.scene_name}} " data - language = " {{ subs_languages_list}} " data - hi = " {{ details.hearing_impaired}} " data - forced = " {{ details.forced}} " data - movie_title = " {{ details.title}} " data - radarrId = " {{ details.radarr_id}} " > < i class = " ui inverted large compact user icon " > < / i > < / button >
< button class = " manual_upload ui button " data - tooltip = " Manually upload subtitles " data - inverted = " " data - moviePath = " {{ details.path}} " data - scenename = " {{ details.scene_name}} " data - language = " {{ subs_languages_list}} " data - hi = " {{ details.hearing_impaired}} " data - movie_title = " {{ details.forced}} " data - radarrId = " {{ details.title}} " > < i class = " ui inverted large compact cloud upload icon " > < / i > < / button >
< button class = " manual_upload ui button " data - tooltip = " Upload Subtitle File " data - inverted = " " data - moviePath = " {{ details.path}} " data - scenename = " {{ details.scene_name}} " data - language = " {{ subs_languages_list}} " data - hi = " {{ details.hearing_impaired}} " data - movie_title = " {{ details.forced}} " data - radarrId = " {{ details.title}} " > < i class = " ui inverted large compact cloud upload icon " > < / i > < / button >
% end
% end
< button id = " config " class = " ui button " data - tooltip = " Edit m ovie" data - inverted = " " data - tmdbid = " {{ details.tmdb_id}} " data - title = " {{ details.title}} " data - poster = " {{ details.poster}} " data - audio = " {{ details.audio_language}} " data - languages = " {{ !subs_languages_list}} " data - hearing - impaired = " {{ details.hearing_impaired}} " data - forced = " {{ details.forced}} " > < i class = " ui inverted large compact configure icon " > < / i > < / button >
< button id = " config " class = " ui button " data - tooltip = " Edit M ovie" data - inverted = " " data - tmdbid = " {{ details.tmdb_id}} " data - title = " {{ details.title}} " data - poster = " {{ details.poster}} " data - audio = " {{ details.audio_language}} " data - languages = " {{ !subs_languages_list}} " data - hearing - impaired = " {{ details.hearing_impaired}} " data - forced = " {{ details.forced}} " > < i class = " ui inverted large compact configure icon " > < / i > < / button >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
@ -162,8 +162,8 @@
< table class = " ui very basic single line selectable table " >
< table class = " ui very basic single line selectable table " >
< thead >
< thead >
< tr >
< tr >
< th > Subtitles p ath< / th >
< th > Subtitles P ath< / th >
< th > Language < / th >
< th > Language ( s ) < / th >
< th > < / th >
< th > < / th >
< / tr >
< / tr >
< / thead >
< / thead >
@ -180,11 +180,11 @@
end
end
% >
% >
< tr >
< tr >
< td > { { path_replace_movie ( subtitles_file [ 1 ] ) if subtitles_file [ 1 ] is not None else ' Video file subtitles t rack' } } < / td >
< td > { { path_replace_movie ( subtitles_file [ 1 ] ) if subtitles_file [ 1 ] is not None else ' Video File Subtitles T rack' } } < / td >
< td > < div class = " ui tiny inverted label " style = ' background-color: #777777; ' > { { language_from_alpha2 ( subtitles_file [ 0 ] . split ( ' : ' ) [ 0 ] ) } } { { ' forced ' if forced else ' ' } } < / div > < / td >
< td > < div class = " ui tiny inverted label " style = ' background-color: #777777; ' > { { language_from_alpha2 ( subtitles_file [ 0 ] . split ( ' : ' ) [ 0 ] ) } } { { ' forced ' if forced else ' ' } } < / div > < / td >
< td >
< td >
% if subtitles_file [ 1 ] is not None :
% if subtitles_file [ 1 ] is not None :
< a class = " remove_subtitles ui inverted basic compact icon " data - tooltip = " Delete subtitles file from disk " data - inverted = " " data - position = " top right " data - moviePath = " {{ details.path}} " data - subtitlesPath = " {{ path_replace_movie(subtitles_file[1])}} " data - language = " {{ alpha3_from_alpha2(subtitles_file[0].split( ' : ' )[0])}} " data - radarrId = { { details . radarr_id } } >
< a class = " remove_subtitles ui inverted basic compact icon " data - tooltip = " Delete Subtitle File " data - inverted = " " data - position = " top right " data - moviePath = " {{ details.path}} " data - subtitlesPath = " {{ path_replace_movie(subtitles_file[1])}} " data - language = " {{ alpha3_from_alpha2(subtitles_file[0].split( ' : ' )[0])}} " data - radarrId = { { details . radarr_id } } >
< i class = " ui black delete icon " > < / i >
< i class = " ui black delete icon " > < / i >
< / a >
< / a >
% end
% end
@ -194,7 +194,7 @@
end
end
if len ( subtitles_files ) == 0 :
if len ( subtitles_files ) == 0 :
% >
% >
< tr > < td colspan = " 3 " > No subtitles detected for this m ovie. < / td > < / tr >
< tr > < td colspan = " 3 " > No Subtitles Detected For This M ovie. < / td > < / tr >
< %
< %
end
end
end
end
@ -213,7 +213,7 @@
< table class = " ui very basic single line selectable table " >
< table class = " ui very basic single line selectable table " >
< thead >
< thead >
< tr >
< tr >
< th > Missing s ubtitles< / th >
< th > Missing S ubtitles< / th >
< / tr >
< / tr >
< / thead >
< / thead >
< / table >
< / table >
@ -237,7 +237,7 @@
< i style = " margin-left:3px; margin-right:0 " class = " search icon " > < / i >
< i style = " margin-left:3px; margin-right:0 " class = " search icon " > < / i >
< / a >
< / a >
% else :
% else :
< a data - tooltip = " Automatic searching delayed (adaptive s earch)" data - position = " top left " data - inverted = " " class = " get_subtitle ui small red label " data - moviePath = " {{ details.path}} " data - scenename = " {{ details.scene_name}} " data - language = " {{ alpha3_from_alpha2(str(missing_subs_language.split( ' : ' )[0]))}} " data - hi = " {{ details.hearing_impaired}} " data - forced = " {{ details.forced}} " data - radarrId = { { details . radarr_id } } >
< a data - tooltip = " Automatic Searching Delayed (Adaptive S earch)" data - position = " top left " data - inverted = " " class = " get_subtitle ui small red label " data - moviePath = " {{ details.path}} " data - scenename = " {{ details.scene_name}} " data - language = " {{ alpha3_from_alpha2(str(missing_subs_language.split( ' : ' )[0]))}} " data - hi = " {{ details.hearing_impaired}} " data - forced = " {{ details.forced}} " data - radarrId = { { details . radarr_id } } >
{ { language_from_alpha2 ( str ( missing_subs_language . split ( ' : ' ) [ 0 ] ) ) } } { { ' forced ' if forced else ' ' } }
{ { language_from_alpha2 ( str ( missing_subs_language . split ( ' : ' ) [ 0 ] ) ) } } { { ' forced ' if forced else ' ' } }
< i style = " margin-left:3px; margin-right:0 " class = " search icon " > < / i >
< i style = " margin-left:3px; margin-right:0 " class = " search icon " > < / i >
< / a >
< / a >
@ -275,7 +275,7 @@
< div class = " ui grid " >
< div class = " ui grid " >
< div class = " middle aligned row " >
< div class = " middle aligned row " >
< div class = " right aligned five wide column " >
< div class = " right aligned five wide column " >
< label > Audio l anguage< / label >
< label > Audio L anguage< / label >
< / div >
< / div >
< div class = " nine wide column " >
< div class = " nine wide column " >
< div id = " movie_audio_language " > < / div >
< div id = " movie_audio_language " > < / div >
@ -283,7 +283,7 @@
< / div >
< / div >
< div class = " middle aligned row " >
< div class = " middle aligned row " >
< div class = " right aligned five wide column " >
< div class = " right aligned five wide column " >
< label > Subtitle s l anguages< / label >
< label > Subtitle L anguages< / label >
< / div >
< / div >
< div class = " nine wide column " >
< div class = " nine wide column " >
< select name = " languages " id = " movie_languages " { { ! ' multiple= " " ' if single_language is False else ' ' } } class = " ui fluid selection dropdown " >
< select name = " languages " id = " movie_languages " { { ! ' multiple= " " ' if single_language is False else ' ' } } class = " ui fluid selection dropdown " >
@ -299,7 +299,7 @@
< / div >
< / div >
< div class = " middle aligned row " >
< div class = " middle aligned row " >
< div class = " right aligned five wide column " >
< div class = " right aligned five wide column " >
< label > Hearing - i mpaired< / label >
< label > Hearing - I mpaired< / label >
< / div >
< / div >
< div class = " nine wide column " >
< div class = " nine wide column " >
< div id = " movie_hearing-impaired_div " class = " ui toggle checkbox " >
< div id = " movie_hearing-impaired_div " class = " ui toggle checkbox " >
@ -342,9 +342,9 @@
< tr >
< tr >
< th style = " text-align: left; " > Score : < / th >
< th style = " text-align: left; " > Score : < / th >
< th style = " text-align: left; " > Language : < / th >
< th style = " text-align: left; " > Language : < / th >
< th style = " text-align: left; " > Hearing - i mpaired: < / th >
< th style = " text-align: left; " > Hearing - I mpaired: < / th >
< th style = " text-align: left; " > Provider : < / th >
< th style = " text-align: left; " > Provider : < / th >
< th style = " text-align: left; " > Based o n: < / th >
< th style = " text-align: left; " > Based O n: < / th >
< th > < / th >
< th > < / th >
< / tr >
< / tr >
< / thead >
< / thead >
@ -413,7 +413,7 @@
< script >
< script >
$ ( ' #scan_disk ' ) . on ( ' click ' , function ( ) {
$ ( ' #scan_disk ' ) . on ( ' click ' , function ( ) {
$ ( ' #loader_text ' ) . text ( " Scanning disk for existing s ubtitles..." ) ;
$ ( ' #loader_text ' ) . text ( " Scanning Disk For Existing S ubtitles..." ) ;
window . location = ' {{ base_url}}scan_disk_movie/ {{ no}} ' ;
window . location = ' {{ base_url}}scan_disk_movie/ {{ no}} ' ;
} ) ;
} ) ;
@ -434,7 +434,7 @@
tmdbid : { { tmdbid } }
tmdbid : { { tmdbid } }
} ;
} ;
$ ( ' #loader_text ' ) . text ( " Deleting subtitle from disk ..." ) ;
$ ( ' #loader_text ' ) . text ( " Deleting Subtitle ..." ) ;
$ . ajax ( {
$ . ajax ( {
url : " {{ base_url}}remove_subtitles_movie " ,
url : " {{ base_url}}remove_subtitles_movie " ,
@ -462,7 +462,7 @@
title : " {{ !details.title.replace( " ' " , " \\ ' " )}} "
title : " {{ !details.title.replace( " ' " , " \\ ' " )}} "
} ;
} ;
$ ( ' #loader_text ' ) . text ( " Downloading subtitle to disk ..." ) ;
$ ( ' #loader_text ' ) . text ( " Downloading Subtitle File ..." ) ;
$ . ajax ( {
$ . ajax ( {
url : " {{ base_url}}get_subtitle_movie " ,
url : " {{ base_url}}get_subtitle_movie " ,
@ -538,7 +538,7 @@
destroy : true ,
destroy : true ,
language : {
language : {
loadingRecords : ' <br><div class= " ui active inverted dimmer " style= " width: 95 % ; " ><div class= " ui centered inline loader " ></div></div><br> ' ,
loadingRecords : ' <br><div class= " ui active inverted dimmer " style= " width: 95 % ; " ><div class= " ui centered inline loader " ></div></div><br> ' ,
zeroRecords : ' No subtitles found for this m ovie'
zeroRecords : ' No Subtitles Found For This M ovie'
} ,
} ,
paging : true ,
paging : true ,
lengthChange : false ,
lengthChange : false ,
@ -654,7 +654,7 @@
title : " {{ !details.title.replace( " ' " , " \\ ' " )}} "
title : " {{ !details.title.replace( " ' " , " \\ ' " )}} "
} ;
} ;
$ ( ' #loader_text ' ) . text ( " Downloading subtitle to disk ..." ) ;
$ ( ' #loader_text ' ) . text ( " Downloading Subtitle File ..." ) ;
$ ( ' #loader ' ) . addClass ( ' active ' ) ;
$ ( ' #loader ' ) . addClass ( ' active ' ) ;
$ ( ' .search_dialog ' ) . modal ( ' hide ' ) ;
$ ( ' .search_dialog ' ) . modal ( ' hide ' ) ;
@ -669,4 +669,4 @@
window . location . reload ( ) ;
window . location . reload ( ) ;
} ) ;
} ) ;
}
}
< / script >
< / script >