fixed #131;initial support for nc27

This commit is contained in:
benson
2023-06-16 22:02:44 +08:00
parent 47a83e1707
commit 0c72616da7
3 changed files with 3 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ download videos from 700+ video sites(youtube,youku,vimo,dailymotion,twitter,fac
<repository>https://github.com/shiningw/ncdownloader</repository> <repository>https://github.com/shiningw/ncdownloader</repository>
<dependencies> <dependencies>
<php min-version="7.3" max-version="8.2" /> <php min-version="7.3" max-version="8.2" />
<nextcloud min-version="20" max-version="26"/> <nextcloud min-version="20" max-version="27"/>
</dependencies> </dependencies>
<navigations> <navigations>
<navigation> <navigation>

View File

@@ -400,7 +400,8 @@ class Helper
{ {
if (self::getUID()) { if (self::getUID()) {
OC_Util::setupFS(); OC_Util::setupFS();
return Filesystem::getLocalFolder($path); //get the real path of the file in the filesystem
return \OC\Files\Filesystem::getLocalFile($path);
} }
return ""; return "";
} }