Article

  • 2 years

    2 years

    YetiShare / Plugins / Media Converter

    889

Migrate media converter screenshots from v3.x to v4.x

The cache storage method had been significantly improved in YetiShare v4.0. Cached files, screenshots etc are all now managed in 1 location which means they can easily be removed when uploaded files are deleted.

All other plugins automatically use the new storage method however any screenshots captured by the media converter plugin prior to v4 need migrating using the attached script.

To run following this guidance on your pre v4 installation. You can run this after v4 is installed however you need to update the path to master.inc.php in this file.

  • Download the attached file and upload it to your main server in \plugins\mediaconverter\site\
  • On the same server, manually create the folder \core\cache\ with write permissions. (CHMOD 777 or 755 depending on your server config)
  • Load the file via a browser, http://yoursite.com/plugins/mediaconverter/site/migrate_screens_v3_to_v4.php
  • The screenshot files will be copied into \core\cache\plugins\mediaconverter\. So you should start seeing them appear as the script is running.
  • Depending on how many files you have, it may take some time to complete.
  • Once complete and you've upgraded to v4, confirm screenshots are working on videos and remove the v3.x cache in \plugins\mediaconverter\site\screenshots\

Note: The old cache also contains thumbnail versions which don't need migrating, so you may end up with less files in \core\cache\. These will be auto generated again when the thumbnail is requested. Only the original screens are migrated.