Skip to content

Commit

Permalink
Merge pull request ua-parser#402 from josealvarezmuguerza:pandora_use…
Browse files Browse the repository at this point in the history
…r_agent
  • Loading branch information
commenthol committed Mar 20, 2021
2 parents b40c1eb + b0fad2f commit b82a064
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ user_agent_parsers:
# Bots Pattern 'name/0.0.0'
- regex: '/((?:Ant-|)Nutch|[A-z]+[Bb]ot|[A-z]+[Ss]pider|Axtaris|fetchurl|Isara|ShopSalad|Tailsweep)[ \-](\d+)(?:\.(\d+)|)(?:\.(\d+)|)'
# Bots Pattern 'name/0.0.0'
- regex: '\b(008|Altresium|Argus|BaiduMobaider|BoardReader|DNSGroup|DataparkSearch|EDI|Goodzer|Grub|INGRID|Infohelfer|LinkedInBot|LOOQ|Nutch|OgScrper|PathDefender|Peew|PostPost|Steeler|Twitterbot|VSE|WebCrunch|WebZIP|Y!J-BR[A-Z]|YahooSeeker|envolk|sproose|wminer)/(\d+)(?:\.(\d+)|)(?:\.(\d+)|)'
- regex: '\b(008|Altresium|Argus|BaiduMobaider|BoardReader|DNSGroup|DataparkSearch|EDI|Goodzer|Grub|INGRID|Infohelfer|LinkedInBot|LOOQ|Nutch|OgScrper|Pandora|PathDefender|Peew|PostPost|Steeler|Twitterbot|VSE|WebCrunch|WebZIP|Y!J-BR[A-Z]|YahooSeeker|envolk|sproose|wminer)/(\d+)(?:\.(\d+)|)(?:\.(\d+)|)'

# MSIECrawler
- regex: '(MSIE) (\d+)\.(\d+)([a-z]\d|[a-z]|);.{0,200} MSIECrawler'
Expand Down
11 changes: 11 additions & 0 deletions tests/test_device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80478,3 +80478,14 @@ test_cases:
family: 'Huawei Honor Che2-TL00M'
brand: 'Huawei'
model: 'Honor Che2-TL00M'

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Pandora/1904.1.1'
family: 'iPhone'
brand: 'Apple'
model: 'iPhone'

- user_agent_string: 'Mozilla/5.0 (iPad; CPU OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16D57 Pandora/1902.1'
family: 'iPad'
brand: 'Apple'
model: 'iPad'

22 changes: 22 additions & 0 deletions tests/test_os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3069,3 +3069,25 @@ test_cases:
minor:
patch:
patch_minor:

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Pandora/1904.1.1'
family: 'iOS'
major: '12'
minor: '2'
patch:
patch_minor:

- user_agent_string: 'Pandora/1904.1 Android/8.0.0 heroqlteusc (ExoPlayerLib1.5.14.1)'
family: 'Android'
major: '8'
minor: '0'
patch: '0'
patch_minor:

- user_agent_string: 'Pandora Audio/1903.2 (Linux;Android 7.0) ExoPlayerLib/2.8.2'
family: 'Android'
major: '7'
minor: '0'
patch:
patch_minor:

30 changes: 30 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8538,3 +8538,33 @@ test_cases:
major:
minor:
patch:

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302 Pandora/1902.1'
family: 'Pandora'
major: '1902'
minor: '1'
patch:

- user_agent_string: 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Pandora/1904.1.3'
family: 'Pandora'
major: '1904'
minor: '1'
patch: '3'

- user_agent_string: 'Pandora/1904.1 Android/8.0.0 heroqlteusc (ExoPlayerLib1.5.14.1)'
family: 'Pandora'
major: '1904'
minor: '1'
patch:

- user_agent_string: 'Pandora/2091 CFNetwork/978.0.7 Darwin/18.5.0'
family: 'Pandora'
major: '2091'
minor:
patch:

- user_agent_string: 'PandoraRSSCrawler/1.0 ([email protected])'
family: 'PandoraRSSCrawler'
major: '1'
minor: '0'
patch:

0 comments on commit b82a064

Please sign in to comment.