locaal-ai / obs-urlsource

OBS plugin to fetch data from a URL or file, connect to an API or AI service, parse responses and display text, image or audio on scene
https://obsproject.com/forum/resources/url-api-source-fetch-live-data-and-display-it-on-screen.1756/
GNU General Public License v2.0
179 stars 24 forks source link

{{Input}} = Invalid URL? #87

Closed SwirlyMcGee closed 5 months ago

SwirlyMcGee commented 7 months ago

I am trying to create dynamic images in OBS controled by a Google Sheet using urlsource. I have Google Sheets choose from a list of Imgur image urls which I want to use as a dynamic input for an image URL Source.

I have a Google Sheet that outputs a string to a URL Source succesfully. The string is then output to a Text (GDI+) succesfully. Here is that pictured:

urlsource_issue_part1

The string itself is a url to an Imgur file I want to use as a dynamic input for a different URL Source. I can use it as a url directly like this:

urlsource_issue_part2

But, when I try and use the Text (GDI+) as a dynamic input, it doesn't work. Testing the request just returns with "URL is Invalid":

urlsource_issue_part3

I've uninstalled urlsource and reinstalled it already, so I am on version 0.2.7 now. I was able to get this working yesterday, but for some reason can't seem to figure out the issue. Maybe I just don't understand Inja or something.

royshil commented 7 months ago

@SwirlyMcGee I've tried to replicate your issue and indeed I'm getting the same problem although I don't understand why it's not working because it should. So I will need to debug...

pwillia7 commented 6 months ago

I'm having this same issue -- I see {{input}} always failing the URL check if it's in the path at all

royshil commented 6 months ago

@pwillia7 @SwirlyMcGee are y'all able to test #93 ?

SwirlyMcGee commented 6 months ago

@royshil I'm willing to test, but I'm not sure how to install it. I tried uninstalling my version 0.3.0 and then downloading the zip for the roy.fix_url_input_template branch and extracting that into my obs plugins folder, but that didn't seem to work.

royshil commented 6 months ago

@SwirlyMcGee https://github.com/occ-ai/obs-urlsource/actions/runs/8821522148#artifacts there are downloads

royshil commented 5 months ago

resolved #93