Skip to content

Commit 605ad38

Browse files
committed
fix: process video source options before generic source options
1 parent aff7bc1 commit 605ad38

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mapillary_tools/process_geotag_properties.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ def _parse_source_options(
4646
) -> list[SourceOption]:
4747
parsed_options: list[SourceOption] = []
4848

49-
for s in geotag_source:
50-
parsed_options.extend(parse_source_option(s))
49+
if video_geotag_source and geotag_source:
50+
LOG.warning(
51+
"Video source options will be processed BEFORE the generic source options"
52+
)
5153

5254
for s in video_geotag_source:
5355
for video_option in parse_source_option(s):
@@ -56,6 +58,9 @@ def _parse_source_options(
5658
)
5759
parsed_options.append(video_option)
5860

61+
for s in geotag_source:
62+
parsed_options.extend(parse_source_option(s))
63+
5964
if geotag_source_path is not None:
6065
for parsed_option in parsed_options:
6166
if parsed_option.source_path is None:

0 commit comments

Comments
 (0)