Created
September 2, 2019 08:00
-
-
Save chrisarnott86/3e55ca7edf39a358f9375964539d77fb to your computer and use it in GitHub Desktop.
Extract cookie data from firefox for streamlink tvplayer plugin
tmatthews5511
commented
Dec 2, 2019
via email
Here are the differences:
the script's cookie (which tvplayer does not like):
eyJpdiI6InVaaVY3eU1wK0hYTlwvZ1ZqbG1odnNBPT0iLCJ2YWx1ZSI6IkZZdDRcL0JCNDBJakZDWDgxQ2l1NGxjUmJ3VVR4SXhiUm4wellJbm02N2Y3akhIckJoV1NleU1Ncngzd0tMdUxtMGxLWm55YmtNdXFUc2c0cnZWYkJ1Z21KR0NRZUZcL0ZiZStLSEVTdWZFV0drOTRQRDJhMTdHcEdKYXUza096c3F2eWVoajhJbHBReEdDMmx3d1VFbEhyOGFCYndpQW5jN1lubjFkUEhHbmxteDFFUERDUTBSZEZ3cjFpQTc0RHVoVjNXM0JHVlVpY2hZQjQxc05WNkpZXC95S05WeXZqK1wvazBFaXo2SUpYWXJzQ0QwNlJrM0pyVU9MR05IR2NLemlsUlg0OWQ4QzloYmtRcnNNdWJMSEFCYmdsU1dDek9US2kyWUUwTkk4d2pYZ0RlMEVreWJyamRyY0V5S3RcL0pMMlNjOERRZlN0SUVLNnFxNFJCY2RId0RKXC9cL05NZWxjeHFvVmRScExMQ0pmQ2JOUEJhQUxrbjFvRUdXRWZuS3RWVFwvU3pnU0pleGJ3WjhRbXJqWUsrZ0c4QT09IiwibWFjIjoiNGE0ODA0Yzk4ZGM0ZTcyNzBiMGMzY2VlMWI3NGI5NDhmYTdlNWQ5YjIyNDk5N2JhZjJjMzQ1Mzc2MmUyYzZlMSJ9
the cookie straight from firefox (which does work with tvplayer):
eyJpdiI6IlF4dStuZDhxbUVKd3JkV3JEajAwbHc9PSIsInZhbHVlIjoiTEJESVBqd20yS0dQMWJRaU1mSW9BRVJEcG9PaFRzK0p0WENXanJKT1Y0bm9wK0JqS0RvV3JEY05UanRjNW0rMEZpY1A1aTRUOHZxemtBd201WU5GUHFNVG8zeTNXRlRxdVVCb2xmODNHNkJTVUNOakRsSk5vdWNydzAxNCtHaXZxcjk2a1lLN1pOcWRpOERJMU5pZTFNWjVXVkd4cmJiVVRob0NoSHJkVFRMazdpUVVUVXFNK1RNSjV2MjF5Zis0VXNKdVwvWEhSZjNwUEVXUUR5czlMMFlvYUNIcld0bGh3aTNPY2RZWkRTNFdwY1BBQXNSNk1SNkk1N2VBYWRuQTJVR1lvTUt4Skc5dXVNbzRnbG1yYUtjSGFKSllHMU94QlQ1SUZBZDVJOTFtNkw3S3M1eFFZZ3ZINGhrNVFwZW0rbHJGWk52N2ZBdiswaHV5eDU2Z0czZkV4ZkN1ME01K2ttamxXZzd4UzM5Y0twZ1hRU3J0Y1BKR0JEM0ZJUEpkVW9KTjU5Sk1LZ3FWcVFFTUp2QzdjXC93PT0iLCJtYWMiOiIzMTVhZjFhYjU4M2E3NWYxY2FhZWMxYjE3NDdmN2UxYTE5MjAzMGNkY2Q1N2QyYzMzZDNiYjAzMWU4Mjc0NWU3In0%3D
Can you verify if you get this on your box?
t.
…On Mon, 2 Dec 2019 at 06:10, chrisarnott86 ***@***.***> wrote:
My script is pretty dumb when it comes to choosing the correct firefox
profile, it may be that it's picking up a cookie from an old profile. I'm
sure you'll be able to adjust the prof=grep "Path"
~/.mozilla/firefox/profiles.ini|cut -d '=' -f 2|tail -1` line to make sure
it gets the correct profile. Go to about:profiles in firefox to verify
which one is the active one.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/3e55ca7edf39a358f9375964539d77fb?email_source=notifications&email_token=ADITO3M3PJHQ73T4UJPCATTQWUJMJA5CNFSM4JTNZUFKYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF5DKY#gistcomment-3098284>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADITO3MBRKLPSC72CNB4KYDQWUJMJANCNFSM4JTNZUFA>
.
I checked that the script pulls the same value as is in the broswer. If you're getting a value that's different then it must be coming from a different firefox profile, or maybe you've got extra cookies stored that meet the same query parameters? Have you got more than one entry for persistence-v2 when you browse the cookies in firefox?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment