mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding modern android app user agent in logging.
This commit is contained in:
parent
10edceda1c
commit
19fba9cbd8
2 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@ package com.newsblur.network;
|
|||
|
||||
public class APIConstants {
|
||||
|
||||
public static final String NEWSBLUR_URL = "https://www.newsblur.com";
|
||||
public static final String NEWSBLUR_URL = "https://debug.newsblur.com";
|
||||
public static final String COOKIE_DOMAIN = ".newsblur.com";
|
||||
public static final String URL_CATEGORIES = NEWSBLUR_URL + "/categories/";
|
||||
public static final String PARAMETER_CATEGORY = "category";
|
||||
|
|
|
@ -111,6 +111,8 @@ def extract_user_agent(request):
|
|||
elif 'blar' in user_agent:
|
||||
platform = 'Blar'
|
||||
elif 'android' in user_agent:
|
||||
platform = 'androd'
|
||||
elif 'Android app' in user_agent:
|
||||
platform = 'Androd'
|
||||
elif 'pluggio' in user_agent:
|
||||
platform = 'Plugio'
|
||||
|
|
Loading…
Add table
Reference in a new issue