Announcement

Collapse
No announcement yet.

Errors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Errors

    Tried to download this link on Streamfab: https://go.discovery.com/video/exped...he-pirate-king
    Get this error: expected string or bytes-like object

    Tried using yt-dlp
    Get this error:
    C:\Temp>yt-dlp --cookies-from-browser chrome https://go.discovery.com/video/exped...he-pirate-king
    [Cookies] Extracting cookies from chrome
    Traceback (most recent call last):
    File "yt_dlp\__main__.py", line 17, in <module>
    File "yt_dlp\__init__.py", line 967, in main
    File "yt_dlp\__init__.py", line 927, in _real_main
    File "yt_dlp\YoutubeDL.py", line 740, in __init__
    File "yt_dlp\YoutubeDL.py", line 3871, in _setup_opener
    File "yt_dlp\cookies.py", line 99, in load_cookies
    File "yt_dlp\cookies.py", line 120, in extract_cookies_from_browser
    File "yt_dlp\cookies.py", line 289, in _extract_chrome_cookies
    File "yt_dlp\cookies.py", line 952, in _open_database_copy
    File "shutil.py", line 418, in copy
    File "shutil.py", line 264, in copyfile
    PermissionError: [Errno 13] Permission denied: 'C:\\Users\\mgk32\\AppData\\Local\\Google\\Chrome\ \User Data\\Default\\Network\\Cookies'
    [13892] Failed to execute script '__main__' due to unhandled exception!

    Tried different browsers.
    Deleted cookies, cache and temp
    Uninstalled and reinstalled Chrome
    None of the above fixed the problem

    I was however able to use yt-dlp on another computer I have and it works fine.

    Any help/suggestions would be appreciated.
    Thanks!


    #2
    I'm certainly not an expert on yt-dlp like JPP72 is but it looks like to me that you need to tell it your cable provider.

    --ap-mso MSO Adobe Pass multiple-system operator (TV
    provider) identifier, use --ap-list-mso for
    a list of available MSOs
    --ap-username USERNAME Multiple-system operator account login
    --ap-password PASSWORD Multiple-system operator account password.
    If this option is left out, yt-dlp will ask
    interactively

    I was able to watch the show on Chrome after I told it my provider. I haven't tried it yet but it should work on SF. I've done it plenty of times with other shows and other streamers.

    Comment


      #3
      The command line works, it's just not working on this computer. It works fine on my other computer.

      Comment


        #4
        Nah, no luck with StreamFab. I get the same error you did when trying to download. I completely missed the fact that you must have made it past the provider roadblock in StreamFab. So forget that part of my last message with regards to StreamFab. I don't have any trouble watching the show on SF but that's not what it's made for. You will probably still need the "MSO" command in yt-dlp to get past the provider roadblock. It's best to wait for Jack (jpp72). You could call him our resident yt-dlp guru. If it can be done, he'll figure it out.

        Comment


          #5
          Originally posted by mike327 View Post
          Tried to download this link on Streamfab: https://go.discovery.com/video/exped...he-pirate-king
          Get this error: expected string or bytes-like object

          Tried using yt-dlp
          Get this error:
          C:\Temp>yt-dlp --cookies-from-browser chrome https://go.discovery.com/video/exped...he-pirate-king
          [Cookies] Extracting cookies from chrome
          Traceback (most recent call last):
          File "yt_dlp\__main__.py", line 17, in <module>
          File "yt_dlp\__init__.py", line 967, in main
          File "yt_dlp\__init__.py", line 927, in _real_main
          File "yt_dlp\YoutubeDL.py", line 740, in __init__
          File "yt_dlp\YoutubeDL.py", line 3871, in _setup_opener
          File "yt_dlp\cookies.py", line 99, in load_cookies
          File "yt_dlp\cookies.py", line 120, in extract_cookies_from_browser
          File "yt_dlp\cookies.py", line 289, in _extract_chrome_cookies
          File "yt_dlp\cookies.py", line 952, in _open_database_copy
          File "shutil.py", line 418, in copy
          File "shutil.py", line 264, in copyfile
          PermissionError: [Errno 13] Permission denied: 'C:\\Users\\mgk32\\AppData\\Local\\Google\\Chrome\ \User Data\\Default\\Network\\Cookies'
          [13892] Failed to execute script '__main__' due to unhandled exception!

          Tried different browsers.
          Deleted cookies, cache and temp
          Uninstalled and reinstalled Chrome
          None of the above fixed the problem

          I was however able to use yt-dlp on another computer I have and it works fine.

          Any help/suggestions would be appreciated.
          Thanks!

          It's a known error with yt-dlp. New version of Chrome has an exclusive lock on the cookies files. They have a fix but not released yet as they are exploring other implementations.

          In the meantime, you can just close Chrome completely (if you have background extensions running, you need to fully exit and not just close with the X) and try to download again. Should work.
          How to post issues in the StreamFab Section

          Comment


            #6
            Originally posted by mike327 View Post
            The command line works, it's just not working on this computer. It works fine on my other computer.
            The computer where it works it's probably because Chrome isn't up-to-date yet or it's not running in the background.
            How to post issues in the StreamFab Section

            Comment


              #7
              Thanks, Jack, I knew you would come up with something good.
              As for the StreamFab error, searching through Google, it seems the concensus is that it is a Python error and has something to do with "passing a non-string argument to a function that expects a string​". Odds are that it's a StreamFab programmer error.
              https://sebhastian.com/python-typeer...s-like-object/
              Last edited by Cats4U; 06-15-2023, 07:45 PM. Reason: typo

              Comment


                #8
                Both computers have the latest chrome version. I just tried the command line again but I used the cookie file from another browser and it works on this computer. I guess I just have to remember not to use the chrome cookie file. Thanks for your input.

                Comment

                Working...
                X