Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #3505 DevicesDetection plugin - provides detection of TVs #154

Closed
wants to merge 29 commits into from
Closed

Refs #3505 DevicesDetection plugin - provides detection of TVs #154

wants to merge 29 commits into from

Conversation

Solfire
Copy link

@Solfire Solfire commented Nov 22, 2013

This update provides detecting TVs with the DevicesDetection plugin based on the UserAgent.

  • Adding most common TV brands
  • Adding icons for new added TV brands
  • Adding ANTGalio Browser and ANT Browser familiy
  • Adding Opera Next Browser (Blink Engine)
  • Adding televisionRegexesFile
  • Adding getTelevisionRegexes()
  • Adding parseTelevision()
  • Adding isTelevision()
  • Adding televisions.yml with TV regexes
  • Modify parse()
  • Modify parseBrand()
  • Modify parseModel()
  • Update userAgentParserEnhancedFixtures
  • Update some brand icons

Testet with several devices (see picture attached):

update

diwel and others added 29 commits November 4, 2013 10:33
Adding regex for ANTGalio and Opera Next
Adding Regular Expressions for most common TV Brands
+ Adding most common TV Brands
+ Adding ANTGalio Browser and ANT Browser familiy
+ Adding Opera Next Browser (Blink Engine)
+ Adding $televisionRegexesFile
+ Adding getTelevisionRegexes()
+ Adding parseTelevision()
+ Adding isTelevision()
+ Modify parse()
+ Modify parseBrand()
+ Modify parseModel()
+ Modify pseudo TVs to desktop devices (AppleTV, GoogleTV)
+ Removing real TVs (now they are in televisions.yml)
+ Cleanup unnecessary blank lines
+ Add Medion Brand
+ Add Vestel Brand
+ Add Videoweb Brand
+ Modify Humax, Panasonic
+ Modify old icons
+ Adding new icons
+ Medion
+ Videoweb
+ Name / ShortName
+ Icon
+ Regex
Adding many televion UAs
remove double bracket
@Solfire
Copy link
Author

Solfire commented Nov 22, 2013

This is the 2nd try ...

@Solfire Solfire closed this Nov 22, 2013
mattab added a commit that referenced this pull request Dec 8, 2013
@mattab
Copy link
Member

mattab commented Dec 9, 2013

looks like a very good change to add TV detection!

To prepare better I made some improvements in the test fixtures format: https://github.com/piwik/piwik/blob/master/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml with the new "device" category.
and also optimization in 49e77d9
and some message to help with easily updating the list of expected fixtures (so it's easier to edit the list of fixtures)

In fact i'm thinking we should split the test fixture file in separate files per device type or so...

Would you mind updating the PR to latest master? and see if Travis is green (it is now)

Looking forward to include it in Piwik 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants