karlicoss / HPI

Human Programming Interface 🧑👽🤖
https://beepb00p.xyz/hpi.html
MIT License
1.47k stars 59 forks source link

google takeout: support multiple locales, resolves #330 #364

Closed purarue closed 10 months ago

purarue commented 10 months ago

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

falls back to old behavior if no match is found

since google_taktoue_parser currently supports EN/DE, this looks like:

In [1]: import my.google.takeout
   ...: .parser
my.
In [2]: my.google.takeout.parser
   ...: .EXPECTED
Out[2]:
('Chrome',
 'Location History',
 'Meine Aktivitäten',
 'My Activity',
 'Standortverlauf',
 'YouTube( and YouTube Music)?',
 'YouTube( und YouTube Music)?')
purarue commented 10 months ago

weird, looks to be windows install error:

https://github.com/karlicoss/HPI/actions/runs/7367394268/job/20050629747?pr=364#step:6:826

karlicoss commented 10 months ago

Thanks! Yeah, windows CI been flaky for mysterious reasons, haven't had time to investigate yet :( I kicked it again, and it passed along with other pipelines, so gonna merge!