@@ -9373,7 +9373,7 @@ sub tags_from_metadata {
9373
9373
$tags -> {lyrics } = $meta -> {desclong };
9374
9374
$tags -> {lyrics } .= " \n\n PLAY: $meta ->{player}" if $meta -> {player };
9375
9375
$tags -> {lyrics } .= " \n\n INFO: $meta ->{web}" if $meta -> {web };
9376
- $tags -> {hdvideo } = $meta -> {mode } =~ / hd/i ? ' true ' : ' false ' ;
9376
+ $tags -> {hdvideo } = $meta -> {mode } =~ / hd/i ? ( $meta -> { mode } =~ / fhd / i ? 2 : 1 ) : 0 ;
9377
9377
$tags -> {TVShowName } = $meta -> {show };
9378
9378
$tags -> {TVEpisode } = $meta -> {sesort } || $meta -> {pid };
9379
9379
$tags -> {TVSeasonNum } = $tags -> {disk };
@@ -9504,6 +9504,7 @@ sub tag_init {
9504
9504
# determine AtomicParsley features
9505
9505
my $ap_help = ` "$bin ->{atomicparsley}" --help 2>&1` ;
9506
9506
$opt -> {myaphdvideo } = 1 if $ap_help =~ / --hdvideo/ ;
9507
+ $opt -> {myap1080p } = 1 if $opt -> {myaphdvideo } && $ap_help =~ / 1080p/ ;
9507
9508
$opt -> {myaplongdesc } = 1 if $ap_help =~ / --longdesc/ ;
9508
9509
$opt -> {myaplongdescription } = 1 if $ap_help =~ / --longDescription/ ;
9509
9510
$opt -> {myaplongdescfile } = 1 if $ap_help =~ / --longdescFile/ ;
@@ -9540,7 +9541,12 @@ sub tag_cmd {
9540
9541
# video only
9541
9542
if ( $tags -> {is_video } ) {
9542
9543
# all video
9543
- push @cmd , ( ' --hdvideo' , $tags -> {hdvideo } ) if $opt -> {myaphdvideo };
9544
+ if ( $opt -> {myaphdvideo } ) {
9545
+ if ( ! $opt -> {myap1080p } ) {
9546
+ $tags -> {hdvideo } = $tags -> {hdvideo } > 0 ? " true" : " false" ;
9547
+ }
9548
+ push @cmd , ( ' --hdvideo' , $tags -> {hdvideo } );
9549
+ }
9544
9550
# tv only
9545
9551
if ( $tags -> {is_tvshow } ) {
9546
9552
push @cmd , (
0 commit comments