Giter Club home page Giter Club logo

amzn-480p-downloader's Issues

running python amzn_480p_wks.py please help!!

Hi brother, could you please share pywidevine?

I'm currently using WSK_KEYS but having issues, my folder looks like this:
image

and I have added in folder device.wvd and replaced device_client_id_blob and device_private_key just in case.

my headers.py looks like this:

# amazon uk
cookies = {
    'ubid-acbuk': '',
    'x-acbuk': '""',
    'at-acbuk': ''
}

and when running command python amzn_480p_wks.py, I get this error:
Traceback (most recent call last):
File "D:\Scripts\WKS-KEYS\amzn_480p_wks.py", line 7, in
from pywidevine.L3.cdm import deviceconfig
ModuleNotFoundError: No module named 'pywidevine.L3'

Could you please help? Am I doing something wrong? If its a stupid mistake I'm sorry ๐Ÿ˜ญ

Wrong Playlist?

So i tested the script with Freevee https://www.amazon.de/gp/video/detail/B0CVF7DVQ7/

For some reason it always loads the HD playlist? With an "untrusted_device" error?
test1

I think its because of the "HD" Playlist instead of the "SD" Playlist?

Also get an "Cannot complete request." Error when Using an L1 key also not sure why? :D i tested some public L1 keys and got "untrusted_device" Errors so it seems that my L1 key is working but stops with "Cannot complete request."

test 2

Great tool btw!

Primevideo.com

Hi there, can the script be adapted to make it work for primevideo.com?

Can't get it to work on Amzn UK

Is this script for US/EU only?

For UK the headers are titled differently than the examples in the headers.py:

ubid-acbde is ubid-acbuk
x-acbde is x-acbuk
at-acbde is at-acbuk

I changed them and input the correct data, but having no luck.

I see point 6 in the README says to change the TLD variable but I cant see anything in the script or headers.py to change, does this work on Amzn UK?

Getting PRS.NoRights.NotOwned error

Hi, first of all, thanks so much for providing the scripts. This is incredibly generous.
When I try to run the script for primevideo with asin amzn1.dv.gti.e4d0fcd4-bf6d-4927-b6e1-e6a9d9706222, I got error No manifest urls found: PRS.NoRights.NotOwned. Not sure what have I done wrong. I have also use client_id.bin and private_key.pem to created a .wvd under the Device folder.

The content is viewable via browser tho. Idk, is it because some authorization issue?

Header.py:

# amazon uk
cookies = {
    'ubid-acbuk': '',
    'x-acbuk': '',
    'at-acbuk': ''
}

# amazon de
cookies = {
    'ubid-acbde': '',
    'x-acbde': '',
    'at-acbde': ''
}

# amazon.com
cookies = {
    "ubid-main": "358-9099461-0647009",
    "x-main": '"YAhISD5NlGkoDZMpK0CX9Ude5?KwmrCdUZGIr9SNBv7eoWXlynlLcfGBnM56hNOE"',
    "at-main": "Atza|IwEBIJwFtJryNplhE_SLSok_BX6dCkI6Sd4ITj_Xn_yUWQnGlkbWK-7QqjBibPknPSUm7eupSbGYWnF7m_QoJZ2MIrox0Mewzm8SzqSR87x_TFGqZh7Uwq2znEmOxMltKzW_d4SZlrOU6zjfJqFuYqgIJCkThj3gAMDiQ3PVkAj6uhm7PAow7Kn1UwgQ2xgMUf7nqEPzRv1vdE7ttYpNGeEA53mFtzf529BxyRNeUHEWlZxcwd_2IYgkWEtyOa030dSxLU8",
}

The returned json from the line j = get_playback_resources(asin) is:

{
    "catalogMetadata": {
        "catalog": {
            "entityType": "TV Show",
            "episodeNumber": 1,
            "id": "amzn1.dv.gti.e4d0fcd4-bf6d-4927-b6e1-e6a9d9706222",
            "runtimeSeconds": 2617,
            "synopsis": "It's a battle of the sexes when tribes are separated into men versus women, but they are in dismay when they learn of a game-changing twist - they must share one beach.",
            "title": "Two Tribes, One Camp, No Rules",
            "type": "EPISODE",
            "version": "1.0"
        },
        "family": {
            "tvAncestors": [
                {
                    "catalog": {
                        "id": "amzn1.dv.gti.8b47d728-aab6-40c7-97f1-9546fdc09148",
                        "seasonNumber": 24,
                        "title": "Survivor Season 24 - One World",
                        "type": "SEASON",
                        "version": "1.0"
                    },
                    "version": "1"
                },
                {
                    "catalog": {
                        "id": "amzn1.dv.gti.b19b40ac-41cf-426d-a8c8-3cf7ce7bdc07",
                        "title": "Survivor",
                        "type": "SHOW",
                        "version": "1.0"
                    },
                    "version": "1"
                }
            ],
            "version": "1.0"
        },
        "images": {
            "imageUrls": {
                "episode": "https://images-fe.ssl-images-amazon.com/images/S/pv-target-images/44c67cbef58d300b1415b0a0f78804bea41d32bae3989e3b9230e27356e46d69._UY500_UX667_UY500_RI_TTW_.jpg",
                "title": "https://images-fe.ssl-images-amazon.com/images/S/pv-target-images/44c67cbef58d300b1415b0a0f78804bea41d32bae3989e3b9230e27356e46d69._UY500_UX667_UY500_RI_TTW_.jpg"
            },
            "version": "1.0"
        },
        "playback": {
            "accessControls": {
                "pinLength": 0,
                "restrictions": []
            },
            "summary": {
                "isPlayable": false
            },
            "version": "2.0"
        },
        "reviews": {
            "rating": {
                "count": 0,
                "value": 0.0
            },
            "version": "1.0"
        },
        "version": "1"
    },
    "errorsByResource": {
        "PlaybackUrls": {
            "errorCode": "PRS.NoRights.NotOwned",
            "message": "Cannot complete request.",
            "type": "PRSOwnershipException"
        }
    },
    "returnedTitleRendition": {
        "asin": "amzn1.dv.gti.e4d0fcd4-bf6d-4927-b6e1-e6a9d9706222",
        "assetBundleVideoQuality": "HD",
        "audioQuality": "Stereo",
        "contentId": "amzn1.dv.vcid.5fc55ec3-01b7-43f5-ab6d-6ac51e5eece7",
        "selectedEntitlement": {
            "rightsException": {
                "errorCode": "PRS.NoRights.NotOwned",
                "message": "Cannot complete request.",
                "type": "PRSOwnershipException"
            }
        },
        "titleId": "amzn1.dv.gti.e4d0fcd4-bf6d-4927-b6e1-e6a9d9706222",
        "videoMaterialType": "Feature",
        "videoQuality": "UHD",
        "videoResolution": "2160p"
    }
}
{
    "catalogMetadata": {
        "catalog": {
            "entityType": "TV Show",
            "episodeNumber": 1,
            "id": "amzn1.dv.gti.e4d0fcd4-bf6d-4927-b6e1-e6a9d9706222",
            "runtimeSeconds": 2617,
            "synopsis": "It's a battle of the sexes when tribes are separated into men versus women, but they are in dismay when they learn of a game-changing twist - they must share one beach.",
            "title": "Two Tribes, One Camp, No Rules",
            "type": "EPISODE",
            "version": "1.0"
        },
        "family": {
            "tvAncestors": [
                {
                    "catalog": {
                        "id": "amzn1.dv.gti.8b47d728-aab6-40c7-97f1-9546fdc09148",
                        "seasonNumber": 24,
                        "title": "Survivor Season 24 - One World",
                        "type": "SEASON",
                        "version": "1.0"
                    },
                    "version": "1"
                },
                {
                    "catalog": {
                        "id": "amzn1.dv.gti.b19b40ac-41cf-426d-a8c8-3cf7ce7bdc07",
                        "title": "Survivor",
                        "type": "SHOW",
                        "version": "1.0"
                    },
                    "version": "1"
                }
            ],
            "version": "1.0"
        },
        "images": {
            "imageUrls": {
                "episode": "https://images-fe.ssl-images-amazon.com/images/S/pv-target-images/44c67cbef58d300b1415b0a0f78804bea41d32bae3989e3b9230e27356e46d69._UY500_UX667_UY500_RI_TTW_.jpg",
                "title": "https://images-fe.ssl-images-amazon.com/images/S/pv-target-images/44c67cbef58d300b1415b0a0f78804bea41d32bae3989e3b9230e27356e46d69._UY500_UX667_UY500_RI_TTW_.jpg"
            },
            "version": "1.0"
        },
        "playback": {
            "accessControls": {
                "pinLength": 0,
                "restrictions": []
            },
            "summary": {
                "isPlayable": false
            },
            "version": "2.0"
        },
        "reviews": {
            "rating": {
                "count": 0,
                "value": 0.0
            },
            "version": "1.0"
        },
        "version": "1"
    },
    "errorsByResource": {
        "PlaybackUrls": {
            "errorCode": "PRS.NoRights.NotOwned",
            "message": "Cannot complete request.",
            "type": "PRSOwnershipException"
        }
    },
    "returnedTitleRendition": {
        "asin": "amzn1.dv.gti.e4d0fcd4-bf6d-4927-b6e1-e6a9d9706222",
        "assetBundleVideoQuality": "HD",
        "audioQuality": "Stereo",
        "contentId": "amzn1.dv.vcid.5fc55ec3-01b7-43f5-ab6d-6ac51e5eece7",
        "selectedEntitlement": {
            "rightsException": {
                "errorCode": "PRS.NoRights.NotOwned",
                "message": "Cannot complete request.",
                "type": "PRSOwnershipException"
            }
        },
        "titleId": "amzn1.dv.gti.e4d0fcd4-bf6d-4927-b6e1-e6a9d9706222",
        "videoMaterialType": "Feature",
        "videoQuality": "UHD",
        "videoResolution": "2160p"
    }
}

Unclear instructions in README

Hello I have problems understanding the instructions given in the readme file. Especially 2. and 3.

  1. Drop the file in either of those

Wich file in which "of those"?

  1. Add an L3 CDM in the right folder

Wich folder ist the right one? Is the L3 CDM the device_private_key and device_client_id_blob?

Thank you!

Edit: Typo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.