google takeout: support multiple locales
uses the known locales in google_takeout_parser to determine the expected paths for each locale, and performs a partial match on the paths to detect and use match_structure
This commit is contained in:
parent
1b187b2c1b
commit
93e475795d
1 changed files with 13 additions and 7 deletions
|
@ -64,13 +64,19 @@ def inputs() -> Sequence[Path]:
|
||||||
return get_files(config.takeout_path)
|
return get_files(config.takeout_path)
|
||||||
|
|
||||||
|
|
||||||
EXPECTED = (
|
try:
|
||||||
|
from google_takeout_parser.locales.main import get_paths_for_functions
|
||||||
|
|
||||||
|
EXPECTED = tuple(get_paths_for_functions())
|
||||||
|
|
||||||
|
except ImportError:
|
||||||
|
EXPECTED = (
|
||||||
"My Activity",
|
"My Activity",
|
||||||
"Chrome",
|
"Chrome",
|
||||||
"Location History",
|
"Location History",
|
||||||
"Youtube",
|
"Youtube",
|
||||||
"YouTube and YouTube Music",
|
"YouTube and YouTube Music",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
google_takeout_version = str(getattr(google_takeout_parser, '__version__', 'unknown'))
|
google_takeout_version = str(getattr(google_takeout_parser, '__version__', 'unknown'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue