Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uni Bremen #5

Closed
leon345 opened this issue Aug 17, 2023 · 4 comments
Closed

Uni Bremen #5

leon345 opened this issue Aug 17, 2023 · 4 comments
Assignees

Comments

@leon345
Copy link

leon345 commented Aug 17, 2023

Hello, I would like to provide some information for the University of Bremen.

@RIVEK-Development RIVEK-Development self-assigned this Aug 17, 2023
@RIVEK-Development
Copy link
Owner

Thank you for providing this data.
I have now implemented this url paterns. New version 1.6.0 should be available soon.
Please try to use it and inform me if it is working or not.

@jholsten
Copy link

@RIVEK-Development I just tried with version 0.1.7 and unfortunately, it didn't work.

Maybe this will help: the endpoint used for fetching the URL of the MP4 file is GET https://opencast03.zmml.uni-bremen.de/search/episode.json?id={episodeId}.
In the response body, the URL is located in $search-results.$result.$mediapackage.$media.$track[0].$url.

Here is a shortened example of the response body:

{
    "search-results": {
        "result": {
            "id": "{episodeId}",
            "mediapackage": {
                "id": "{episodeId}",
                "media": {
                    "track": [
                        {
                            "id": "{trackId}",
                            "mimetype": "video/mp4",
                            "url": "{resourceUrl}",
                        }
                    }
                ]
            }
        }
    }
}

@RIVEK-Development
Copy link
Owner

Thank you for this.

I already use this to fetch the url in background.js

There are mainly three reasons I think of why this fails

  1. The json is not exactly the same as in Braunschweig because I use "resolution" and "bitrate" to choose the video. To inspect this I could use a sample json.
  2. The content.js and content2.js does not get the valid id. The version 1.7.2 will log this in the console. Please check this when the update is available
  3. Detecting the right university is not working at all. The UniId will be logged in the console as well.

@RIVEK-Development
Copy link
Owner

It was reason 1 there is no resolution given. Now the first video will be downloaded if no resolution is given. I got the confirmation it's working now. For all further problems please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants