kanishka-linux / reminiscence

Self-Hosted Bookmark And Archive Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archiving Media Element of a web page

kanishka-linux opened this issue · comments

commented

Few commits have been pushed in the devel branch which will help users in archiving media elements of a web page.

How to Enable Archiving of Media elements?

  1. In settings.py file add your favourite download manager to DOWNLOAD_MANAGERS_ALLOWED list. Default are curl and wget. In the case of docker based method users have to make corresponding changes in dockersettings.py file.

  2. open web-interface settings box and add command to Download Manager Field:

     ex: wget {iurl} -O {output}
    
     iurl -> input url
     output -> output path
    
  3. Users should not substitute anything for 'iurl' and 'output' field. {iurl} and {output} fields should be kept as it is.

  4. Reminiscence server will take care of input and output field. However, Position of these two fields may change depending on the type of download manager. Users can add extra parameters to this command.

  5. If user is using youtube-dl as a download manager, then it is advisable to install ffmpeg along with it. In this case user has to take care of regular updating of youtube-dl on their own.

  6. Web-interface also contains, streaming option. If this option is enabled, then HTML5 compliant media files can be played inside browsers, otherwise they will be available for download on the client machine.

  7. Currently, it is not advisable to test it on existing database. However, if user want to test this feature on some test database, then they are advised to apply database migration using following commands, before using new features:

     python manage.py makemigrations
    
     python manage.py migrate
    
  8. Finally, when adding url to any directory just prepend md: to url, so that the particular entry will be recognized by custom download manager.

commented

Few more features have been added

  • Proper streaming support added for archived HTML5 content inside browser. Seeking within streams is also possible.

  • For non-HTML5 archived media, public links can be generated with fixed time period, so that media can be played outside browser using regular media players like mpv/mplayer/vlc etc..