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",
  "A2E50Q8IVZ79QG", "A17PYKRA4ES6YB", "AFRP7VQQ7US69", "A2VZ790DVVI91K", "A2IK56KYGDHUVQ", "A1EXS4KWCX7GYC",
  "ANSTXZRNSPRXT", "A1KF4O3GA2MPZU", "A2XEBUI9EJ55OK", "A7YWW3KUHA54O", "A3DOA4P2WFIK9D", "ABJRG3JXAY5JL",
  "AI00TLC8V1PCT", "A2YWQEZX3UC3J1", "AM08S97P8ESGT", "A234HDVPYTUVNS", "AJ3B6LDE2HP5J", "A2GZIBBOG0DCV4",
  "A3MEKX9EL7SW8T", "A1GXILNJBV9CU7", "ANHPQG9GCMO4A", "A2CBAN119017AE", "A3FO6QR7E7PFQX", "A27OOP63XLO9TI",
  "A2EOVT31LL6KPV", "A1FNA83TYYU3QK", "A3JB7490MR9K86", "A2TIAYXTNQWU3T", "ADP5BND5THPTX", "A1H8RTR0E3Y362",
  "AUNIXHOL9EVMI", "AZKAGPPWORIRY", "A324X3KDTS7NYA", "A71I8788P1ZV8", "A2D0X18EHNKEOJ", "A3JN21B5ZOWUAN",
  "A1TG8VNKP4DSQR", "A2XZMRZUFPEDN4", "A2LJ4A527WOX9J", "A2RJLFEH0UEKI9", "AE5DW8GVLP9NX", "AIE8AMJ60B7OK",
  "A3ZKCWKG4097P", "A2H1I0AR67NWAC", "A3QXXOBP9MU5LY", "A25521KS9QCAMD", "AGQHFIWNI20PO", "A27XSKZJJPVQA4",
  "A1LCAPNEM1C36Z", "A31POKKHZJR1J4", "AOLDXB6WYN0UM", "A3SSWQ04XYPXBH", "A1BSQJM6E77NJE", "A2TX61L00VISA5",
  "AO4A5QLO9663Q", "A15MU3EQ4XZ3Y5", "A3IWJ2DYJQRA3T", "A1Q878J3NE8P81", "AAJB0R7QJO84W", "A2M1CHUCI6RHN8",
  "A6IUL9CVJZXRR", "A2RGJ95OVLR12U", "A1G2XVSR1VA5DI", "A1S15DUFSI8AUG", "ALYWZPYF4JAIT", "A2M4YX06LWP8WI",
  "A2O85NMVNLPKVN", "A3L0T0VL9A921N", "A1J16TEDOYCZTN", "A1Q7QCGNMXAKYW", "A38EHHIB10L47V", "A3R9S4ZZECZ6YL",
  "A1C66CX2XD756O", "A1ZB65LA390I4K", "AVU7CPPF2ZRAS", "ATNLRCEBX3W4P", "A2N49KXGVA18AR", "A271DR1789MXDS",
  "A1TD5Z1R8IWBHA", "A1DOD0Z74XEFYC", "A17AIVOKIKR4QQ", "A1S310WB67VFPY", "A2QCPPMSOLGVZE", "A1NPAGU1M4PA7Z",
  "A3ORLONYQTBTOZ", "A3M7PA8JXKE627", "A1D9UOSBPO2IVH", "A2V9UEGZ82H4KZ", "A3URJAABOST7NW", "A2E0SNTXJVT7WK",
  "ADVBD696BHNV5", "A12GXV8XMS007S", "A2LWARUGJLBYEW", "A2GFL5ZMWNE0PX", "AKPGW064GI9HE", "A3HF4YRA2L7XGC",
  "AGHZIK8D6X7QR", "A1F8D55J0FWDTN", "A1P7E7V3FCZKU6", "A1NL4BVLQ4L3N3", "A10A33FOX2NUBK", "AWZZ5CVHX2CD",
  "A4ZP7ZC4PI6TO", "A1Z88NGR2BK6A2", "A2MDL5WTJIU8SZ", "AP4RS91ZQ0OOI", "AFF5OAL5E3DIU", "A2HYAJ0FEWP6N3",
  "A3SUJTTQGF9GNF", "A346DYAAR4WSNS", "A93SQJNJQLDSS", "A2JKHJ0PX4J3L3", "A2WJI2JG7UW2O1", "ARJHEDRXLP6DM",
  "A1AGU0A4YA5RF9", "A2WV8TTM37P2CB", "AN630UQPG2CA4", "A30OJ8LMIAF6GP", "A8MCGN45KMHDH", "A33S43L213VSHQ",
  "A2NYIDFQSJW39B", "A31DTMEEVDDOIV", "A2FDUYD6UQ1BQ", "A3MTL1JKF2IXY3", "AK6OCP5ZLUJI1", "A3JTVZS31ZJ340", 
  "A43PXU4ZN2AL1", "A1OTX5GMM5144Z", "A2Z1NVLU6LCAUO", "A43PXU4ZN2AL1", "A1OTX5GMM5144Z", "A2Z1NVLU6LCAUO"
]

# device:
#   new:
#     domain: Device
#     app_name: 'com.amazon.amazonvideo.livingroom'  # AIV, com.amazon.amazonvideo.livingroom
#     app_version: '1.1'  # AIV: 3.12.0, livingroom: 1.1
#     device_model: 'Nexus Player'  # SHIELD Android TV, Nexus Player
#     os_version: '8.0.0'  # 25, 8.0.0
#     device_type: 'A2SNKIF736WF4T'
#     device_name: '%FIRST_NAME%''s%DUPE_STRATEGY_1ST% Nexus Player'
#     device_serial: 'a906a7f9bfd6a7ab' # f8eb5625fd608718


device:
  default:  # !<< take note that this is done per-profile
    manufacturer: Hisense
    device_chipset: mt7663
    domain: Device
    app_name: AIV
    os_name: Android
    app_version: 3.12.0
    device_model: HAT4KDTV
    os_version: VIDAA
    device_serial:  # auto-generated
    device_type: A2RGJ95OVLR12U
    device_name: "%FIRST_NAME%'s%DUPE_STRATEGY_1ST% Hisense TV"
    software_version: 248
    firmware: fmw:25-app:PVFTV-97.0580-L
    firmware_version: Hisense/HAT4KDTV/HAT4KDTV:VIDAA/VIDAA/VIDAA:user/release-keys
    user_agent: Dalvik/2.1.0 (Linux; U; Android 6.3.2; HAT4KDTV Build/PS7652.3556N)
    device_serial: '13f5b56b4a17de5d136f0e4c28236109'  # `os.urandom(8).hex()`


device_types:
  browser: 'AOAGZA014O5RE'  # all browsers? all platforms?
  tv_generic: 'A2SNKIF736WF4T'  # type is shared among various random smart tvs
  pc_app: 'A1RTAM01W29CUP'
  mobile_app: 'A43PXU4ZN2AL1'
  echo: 'A7WXQPH584YP'  # echo Gen2
  echo_dot: 'A32DOYMUN6DTXA'  # echo dot Gen3
  echo_studio: 'A3RBAYBE7VM004'  # for audio stuff, this is probably the one to use
  fire_7: 'A2M4YX06LWP8WI'
  fire_7_again: 'A1Q7QCGNMXAKYW'  # not sure the difference
  fire_hd_8: 'A1C66CX2XD756O'
  fire_hd_8_again: 'A38EHHIB10L47V'  # not sure the difference
  fire_hd_8_plus_2020: 'AVU7CPPF2ZRAS'
  fire_hd_10: 'A1ZB65LA390I4K'
  fire_tv: 'A2E0SNTXJVT7WK'  # this is not the stick, this is the older stick-like diamond shaped one
  fire_tv_gen2: 'A12GXV8XMS007S'
  fire_tv_cube: 'A2JKHJ0PX4J3L3'  # this is the STB-style big bulky cube
  fire_tv_stick_gen1: 'ADVBD696BHNV5'  # non-4k fire tv stick
  fire_tv_stick_gen2: 'A2LWARUGJLBYEW'
  fire_tv_stick_with_alexa: 'A265XOI9586NML'
  fire_tv_stick_4k: 'A2GFL5ZMWNE0PX'  # 4k fire tv stick
  fire_tv_stick_4k_gen3: 'AKPGW064GI9HE'
  nvidia_shield: 'A1KAXIG6VXSG8Y'  # nvidia shield, unknown which one or if all

endpoints:
  #browse: '/cdp/catalog/Browse' # Old endpoint
  configuration: '/acm/GetConfiguration/WebClient' # For primevideo
  details: '/gp/video/api/getDetailPage' # Old endpoint
  getDetailWidgets: '/gp/video/api/getDetailWidgets' # Old endpoint
  playback: '/playback/prs/GetVodPlaybackResources'
  metadata: '/api/enrichItemMetadata'
  refreshplayback: '/playback/tags/getRefreshedPlaybackEnvelope'
  licence: '/playback/drm-vod/GetWidevineLicense'
  licence_pr: '/playback/drm-vod/GetPlayReadyLicense'
  # session
  opensession: '/cdp/playback/pes/StartSession'
  updatesession: '/cdp/playback/pes/UpdateSession'
  closesession: '/cdp/playback/pes/StopSession'
  # chapters/scenes
  xray: '/swift/page/xray' # Old enpoint (removed)
  # device registration
  ontv: '/gp/video/ontv/code'
  devicelink: '/gp/video/api/codeBasedLinking'
  codepair: '/auth/create/codepair'
  register: '/auth/register'
  token: '/auth/token'

regions:
  us:
    base: 'www.amazon.com'
    base_api: 'api.amazon.com'
    base_manifest: 'atv-ps.amazon.com'
    marketplace_id: 'ATVPDKIKX0DER'

  gb:
    base: 'www.amazon.co.uk'
    base_api: 'api.amazon.co.uk'
    base_manifest: 'atv-ps-eu.amazon.co.uk'
    marketplace_id: 'A2IR4J4NTCP2M5'  # A1F83G8C2ARO7P is also another marketplace_id

  it:
    base: 'www.amazon.it'
    base_api: 'api.amazon.it'
    base_manifest: 'atv-ps-eu.primevideo.com'
    marketplace_id: 'A3K6Y4MI8GDYMT'

  de:
    base: 'www.amazon.de'
    base_api: 'api.amazon.de'
    base_manifest: 'atv-ps-eu.amazon.de'
    marketplace_id: 'A1PA6795UKMFR9'

  au:
    base: 'www.amazon.com.au'
    base_api: 'api.amazon.com.au'
    base_manifest: 'atv-ps-fe.amazon.com.au'
    marketplace_id: 'A3K6Y4MI8GDYMT'

  jp:
    base: 'www.amazon.co.jp'
    base_api: 'api.amazon.co.jp'
    base_manifest: 'atv-ps-fe.amazon.co.jp'
    marketplace_id: 'A1VC38T7YXB528'

  pl:
    base: 'www.amazon.com'
    base_api: 'api.amazon.com'
    base_manifest: 'atv-ps-eu.primevideo.com'
    marketplace_id: 'A3K6Y4MI8GDYMT'