RU
EN
Main Page
Download
Addons
Forum
Blog
Feedback
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
News:
AIMP for Android v4.00
AIMP Forum
»
AIMP for Windows
»
Suggestions
(Moderator:
DennoN
) »
AIMP for Windows & AIMP for Android user agent strings
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: AIMP for Windows & AIMP for Android user agent strings (Read 7027 times)
0 Members and 1 Guest are viewing this topic.
AIMP for Windows & AIMP for Android user agent strings
«
on:
November 30, 2019, 09:42:53 »
ㅤ
Местный
Posts: 193
Карма: +76/-1
Hi everyone,
I would like to talk about the AIMP's UA strings, as for Windows as for Android.
Humbly, I would like to suggest adding these user agent strings below to each AIMP build, so we have these:
Suggested default user agent strings for AIMP for Windows
AIMP/4.60
[already included]
AIMP/4.60 (Windows NT 10.0)
Mozilla/5.0 (compatible; Windows NT 10.0) AIMP/4.60
[custom UA option] [already included]
Suggested default user agent strings for AIMP for Android
AIMP/3.0
AIMP/3.0 (Android/8.1.0)
[already included]
BASS/2.4 (compatible; Linux; Android 8.1.0; Mobile) AIMP/3.0
[custom UA option] [already included]
For both cases (Windows & Android):
(1) This string says: "Hey, this is who I am". This is the simplest user agent string.
(2) This string says: "Hey, this is who I am, and if you want to know in what platform do I work, now you know". This string includes not only the AIMP version, but the OS name and OS version as well.
(3) This string says: "So, you don't know what AIMP is, and therefore don't you allow me to stream? OK, here I include some more popular references if you need some well-known standard things". This string is probably the most standard-compliant.
By the way, these user agent strings below (from the Windows' build) should be removed:
Deprecated, useless user agent strings
Mozilla/4.0 (compatible)
Mozilla/5.0 (BASS/2.4; ru-ru) AppleWebKit/533.1 (KHTML, like Gecko)
Please, remember all these things are just my humble suggestions. Please, don't take it so serious —I'm just trying to help AIMP becoming more widely compatible, globally.
«
Last Edit: November 30, 2019, 13:45:28 by oɹʇuʞ
»
Logged
Re: AIMP for Windows & AIMP for Android user agent strings
«
Reply #1 on:
December 01, 2019, 13:23:25 »
Artem
Администратор
Супермен
Posts: 15425
Карма: +2892/-55
You are absolutely right, but it not so easy as it looks at first time. AIMP's settings are too easy - you just specifies the user-agent string and done, but all version codes in it must be dynamically changes depended what player's version, what OS's version where app is running. Mobile version, even does not have a list of predefined templates for that...
Logged
Re: AIMP for Windows & AIMP for Android user agent strings
«
Reply #2 on:
December 02, 2019, 02:35:54 »
ㅤ
Местный
Posts: 193
Карма: +76/-1
Yes, I understand. But is it not possible to make user agent strings as follow?
AIMP/4.60 (Windows NT x.x)
Mozilla/5.0 (compatible; Windows NT x.x) AIMP/4.60
AIMP/3.0 (Android/x.x)
BASS/2.4 (compatible; Linux; Android x.x; Mobile) AIMP/3.0
I mean, just let the system replaces the
x
by its custom values. Some examples of 4 diferent OSes (2 desktops and 2 mobiles):
AIMP/4.60 (Windows NT 6.1)
Mozilla/5.0 (compatible; Windows NT 6.3) AIMP/4.60
AIMP/3.0 (Android/9)
BASS/2.4 (compatible; Linux; Android 10; Mobile) AIMP/3.0
Logged
Re: AIMP for Windows & AIMP for Android user agent strings
«
Reply #3 on:
December 02, 2019, 07:56:50 »
Artem
Администратор
Супермен
Posts: 15425
Карма: +2892/-55
Yep, or add the %VER macro
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
AIMP Forum
»
AIMP for Windows
»
Suggestions
(Moderator:
DennoN
) »
AIMP for Windows & AIMP for Android user agent strings