Giter Club home page Giter Club logo

Comments (10)

nitaaikumar avatar nitaaikumar commented on June 9, 2024

I changed it to 9999 in the php file too but still it shows only 10 items. Using PHP 7.4.

from dir2cast.

nitaaikumar avatar nitaaikumar commented on June 9, 2024

In version 1.19, if I change the ITEM_COUNT to 99 instead of 10, it gives the following error:

Trying to access array offset on value of type bool
This error occurred on line 218 of /path/dir2cast.php.
Warning: unlink(/pathtotemp/somename_public.xml): No such file or directory in dir2cast.php on line 1131.

When I change it back to 10 it is fine. So there seems to be some bug with increasing the ITEM_COUNT @ben-xo

from dir2cast.

nitaaikumar avatar nitaaikumar commented on June 9, 2024

Oh I downloaded the latest one from: https://github.com/ben-xo/dir2cast/tree/d35fde0ddf81e29062e1acdbfc252e33ab06aa98 and it works, seems to show all items now. Will let you know if I encounter any more issues.

from dir2cast.

ben-xo avatar ben-xo commented on June 9, 2024

from dir2cast.

ben-xo avatar ben-xo commented on June 9, 2024

I can definitely make it check if the config file has been updated - i may do that - it will make it easier to test changes.

from dir2cast.

nitaaikumar avatar nitaaikumar commented on June 9, 2024

Thank you so much @ben-xo if that is possible.

Sorry this is off-topic, but is it possible to give an option in the ini to disable the script from extracting the cover images from the media files and not add the cover image code in two places at itunes:image and for each episode to make the feed smaller for a large collection of audio and video files? And use the same cover image for each episode as the 1400x1400 image for the show? A global episode image I mean. Because when we have a huge collection of audio and video files, we don't want to manually add cover images for each episode and want it to just use the same cover image of the show for each episode. And also we want the feed to be as small as possible.

< itunes:summary > and < description >, < link > and < enclosure url="" >, and < itunes:author > and < itunes:subtitle >, and < itunes:image > and < image > have the same values. So can you please provide a settings in the ini to disable one of each of these 4 to make the feed more smaller for large items? We may not want to add the feed which has a lot of episodes on Apple Podcast and just tell them to add to a Podcast app directly which accepts podcast feed urls.

I will donate for this caching feature as soon as possible. Sorry for the delay.

from dir2cast.

ben-xo avatar ben-xo commented on June 9, 2024

v1.21 makes it much easier to experiment with changes to dir2cast.ini as you don't have to keep deleting the cache file.

Regarding the image and other tags in the file: the duplication in the text of the feed may seem excessive but your web server will (or… should) send a gzipped copy of the text to the podcast app, meaning what the app downloads is much smaller than the original uncompressed feed size.

You can check if your server is sending a compressed feed with this tool: https://varvy.com/tools/gzip/ (paste the dir2cast.php URL in). My feed is serving with a 75% reduced size because of gzip. Because of the way gzip works, removing duplicate tags hardly affects the actual transmitted size at all.

from dir2cast.

ben-xo avatar ben-xo commented on June 9, 2024

When I test the other URL you gave me, https://gorich.org/dir2cast.php at the link above, it is already gzip enabled, and is 85% smaller.

from dir2cast.

ben-xo avatar ben-xo commented on June 9, 2024

@nitaaikumar if you want to use a global cover art, without extracting from each media file, set:

ITUNES_IMAGE = http://www.somewhere.com/podcast.jpg
AUTO_SAVE_COVER_ART = false

both of these settings are already in dir2cast.ini :)

from dir2cast.

nitaaikumar avatar nitaaikumar commented on June 9, 2024

Dear @ben-xo, Never knew about this gzipping. Yes, I am getting 81% reduction. It is just great. Will try 1.21. I hope it still keeps all the caching benefits for lot of items which you added recently.

Yes, found the AUTO_SAVE_COVER_ART = false and it works. Did not know if the ITUNES_IMAGE would show for each episode also. Just perfect.

For one of my domain names, I have even renamed dir2cast.php as index.php. So I just tell them to go their favorite podcast app and type the https://domainname and voila they see the podcast feed and can subscribe to it. What as easy to subscribe to a podcast? All thanks to your persistent efforts, dir2cast is becoming a fully dream-come-to script.

from dir2cast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.