Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Plugin Version info location

Featured Replies

Trying to create a user script and need to be able to look up what the current version of some plugins are. Where is this info stored, and how would I read that info?

Take a look at any of the .plg files in /boot/config/plugins.

  • Author
13 minutes ago, trurl said:

Take a look at any of the .plg files in /boot/config/plugins.

Maybe you can help me out with one of them to get me started.

 

I want to get the version number from user.scripts plugin and then store that info in another file (we will call it old_userscripts_ver.txt).

 

 

So my script would first check if the old_userscripts_ver.txt exists (Which I know how to do)

Then if it does not exist, I need to create it with the version info from user.scripts plugin

If it does exist I need to compare the versions from the original file vs my file, if they are the same then echo "Same" if different then echo "Different"

 

Thanks for the help.

  • Author

Fist part of the file:

<?xml version="1.0" standalone="yes"?>
<!DOCTYPE PLUGIN [
<!ENTITY name "TestFile">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2020.05.30">
<!ENTITY md5 "d079ca6e025086978db8b2f7174ac448">
<!ENTITY launch "Settings/Userscripts">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/user.scripts">
<!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/master/plugins/&name;.plg">
]>
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" min="6.3.3" icon="file-text-o" support="http://lime-technology.com/forum/index.php?topic=49992.0">
  <CHANGES>
###2020.05.30
- Fix Name / Description containing HTML when editing

###2020.05.11
- Fix display aberration caused by debugging info

 

 

I have tried 

grep '<!ENTITY version' /boot/config/plugins/user.scripts.plg

 

but get no result

 

when I try 

grep '2020.05.30' /boot/config/plugins/user.scripts.plg

 

it grabs the first comment line instead.

###2020.05.30

 

I belive the issue is <! part. how can I search for that?

Edited by almulder

  • Author

Never mind, I am figuring out a different way.

  • Author
9 hours ago, bonienl said:

Just do


plugin version /boot/config/plugins/user.scripts.plg

 

Thanks for the option but it does not work when running it under user scripts. I do have a workaround I am trying.

2 hours ago, almulder said:

Thanks for the option but it does not work when running it under user scripts. I do have a workaround I am trying.

Maybe try specifying the full path to the plugin command, which you can get with

which plugin

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.