Open Franknxtn opened 1 year ago
This shows up in log when i try to use this library. Is this normal?
I guess you can ignore it. Maybe setting some environment variable to a writable path could fix it.
Looks like you can use this:
--cache-dir DIR Location in the filesystem where yt-dlp can
store some downloaded information (such as
client ids and signatures) permanently. By
default ${XDG_CACHE_HOME}/yt-dlp
I i try to extract info using extractInfo(url: URL) function, It works for first time. However, if i call this function in quick succession, the framework crashes.
Below is code sample i am using for link extraction:
let youtubeDL: PythonObject = try await YtDlp().yt_dlp.YoutubeDL(["nocheckcertificate": true])
let info = try PythonDecoder()
.decode(
Info.self,
from: youtubeDL
.extract_info
.throwing
.dynamicallyCall(withKeywordArguments: ["": "WdFj7fUnmC0", "download": false])
)
It returns me info object which contains [Format].
If i call above method in quick succession, it crashes randomly.
Can you show stack trace or other relevant console output?
Sure, here are the stack traces:
Seems to me some kind of memory allocation or infinite loop issue.
I i try to extract info using extractInfo(url: URL) function, It works for first time. However, if i call this function in quick succession, the framework crashes.
Below is code sample i am using for link extraction:
let youtubeDL: PythonObject = try await YtDlp().yt_dlp.YoutubeDL(["nocheckcertificate": true]) let info = try PythonDecoder() .decode( Info.self, from: youtubeDL .extract_info .throwing .dynamicallyCall(withKeywordArguments: ["": "WdFj7fUnmC0", "download": false]) )
It returns me info object which contains [Format].
If i call above method in quick succession, it crashes randomly.
I tried using this but it fails on certain non video urls due to the missing formats key in the response. Have you encountered this issue? I posted more details here: https://github.com/kewlbear/YoutubeDL-iOS/issues/9#issuecomment-1576410513
Is there a way i can get the steam URL without the downloading?