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

local images not working #3

Open
xtinct101 opened this issue Feb 6, 2023 · 5 comments
Open

local images not working #3

xtinct101 opened this issue Feb 6, 2023 · 5 comments

Comments

@xtinct101
Copy link

xtinct101 commented Feb 6, 2023

I'm trying to use the local image option.
The images are downloaded correctly, the xml seems to be pointing in the correct location but it doesn't seem like i'm able to actually call them via link as if server isn't up.

Any suggestion would be welcome.

YAML file

Options:
    Poster Aspect: all
    Schedule Days: 7
    Subtitle into Description: false
    Insert credits tag into XML file: false
    Local Images Cache: true
    Images Path: /images/
    Proxy Images: false
    Hostname: localhost:9080

XMLTV Entry
http://localhost:9080/images/17a7d3065ba268f99beb476d5851e4152583a013ed69ff7e5432e051d9950957.jpg

@xtinct101 xtinct101 changed the title local images? local images not working Feb 6, 2023
@niallobr
Copy link

niallobr commented Jun 7, 2023

It sounds like your proxy server isn't running. You need to let the cronjob run once to activate it. By default it runs at midnight if cron.txt is not set up (see below). When it runs the proxy server is spun up. Can confirm the images are being served correctly after it runs.

After it runs, the proxy server is kept alive. If you run ./config/cronjob.sh manually from your command line I believe the process will end once the script is finished which kills the proxy server.

The readme doesn't cover it but you should use sample_cron.txt to personalize your cronjob. It writes your custom cronjob into the container upon startup. See detailed instructions in sample_cron.txt.

You can update the cronjob to output logs to a file. I was just doing this so here is a guide, might help someone.

Create log folder and log file
mkdir /config/logs/ && touch /config/logs/cron.log

Update permissions
chmod 777 /config/logs/cron.log

Back on your host, rename sample_cron.txt as cron.txt and update run time as needed, with logging at the end
printf '45 04 * * * /config/cronjob.sh >> /config/logs/cron.log 2>&1' > /etc/crontabs/root

@niallobr
Copy link

niallobr commented Aug 4, 2023

Images have actually stopped working now @alturismo I think it is because of this from SD forums

“This will impact requests to the S3 buckets used for images and station logos. Please ensure that your operating system and libraries have been updated.”

@alturismo
Copy link
Owner

Images have actually stopped working now @alturismo I think it is because of this from SD forums

i take a look these days, currently a little busy here, thanks for pointing

@dimitarchakarov
Copy link

Hi @alturismo - have you got time to check on the missing images issue?

@alturismo
Copy link
Owner

Hi @alturismo - have you got time to check on the missing images issue?

thanks for the reminder, but actually not ;) i need some days off ;)

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

4 participants