Support » Plugin: Convoworks WP » Problem installing convoworks

  • Resolved lucavanon

    (@lucavanon)


    Hello, I tried several times to install convoworks plugin to fresh wordpress installations, but everytime it fails.
    After activating it, instead of taking me to the getting started page it tells me I have no permission to view the page. If I reload the page the page loads, however the plugin doesn’t work. When I try to connect to the Amazon account as I click connect it say page not found. If I try to create a new service a lot of errors turn on in a red modal window.
    I thought it was a server configuration issue so I tried on InstaWP, same behaviour.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter lucavanon

    (@lucavanon)

    Hi Tihomir,
    thanks for your help.
    I actually made the skill/service work in Italian in a different way, but the important thing is that it’s working now.
    I only have one problem: how should I name the files and how am I supposed to built the tree structure of my mp3 collection?
    I found out that all directories/albums must be on the root directory (I mean the mp3 root). For example, I can’t make a directory called Queen and then put all Queen’s albums inside that directory (tell me if I’m wrong).
    Over than that, I believe that the mp3 have to be named with a certain format because I noticed that my songs are not played in order as I wish.
    Most of my mp3 are named like:
    01. ArtistName – SongName.mp3
    But it doesn’t seem to work like this.
    Thanks as always for your help, Convoworks is really a great software.

    Plugin Contributor Tihomir Dmitrović

    (@tolecar)

    Hi Luca,
    Thanks! I’m glad you like it.

    Right now it supports only one folder level. We might change it in one of the next versions.
    How does it search? It tries to match the search phrase first with the folder name and if it is a match, the whole folder goes in the playlist. Otherwise it tries to match each song from the folder. If there is an ID3 tag in it, it will use its data, otherwise it tries to match filename.

    But, I just tested it and found two issues: First is with our matching function which currently does not account filename if it has ID3 and the second is related to ALexa which in some cases gives us search value something like this: “My Playground” by The Chikitas.

    Until we release fix for it, here is the quickfix you can apply in convoworks-wp/vendor/zef-dev/convoworks-pckg-filesystem/src/Convo/Pckg/Filesystem/FilesystemMediaContext.php
    Just open that file and replace _readFolderSongs() method with this one:

    private function _readFolderSongs($root, DirectoryIterator $folder, $baseUrl, $artwork, $background, $search = null, $minMatchPercentage = self::MIN_MATCH_PERCENT)
        {
           if (preg_match('/"([^"]+)"/', $search, $m)) {
                $search = $m[1];
            }
    		
            $songs = [];
            foreach (new DirectoryIterator($folder->getRealPath()) as $folder_file) {
                if ($folder_file->isDot() || !$folder_file->isFile()) {
                    continue;
                }
                if (\strtolower($folder_file->getExtension()) !== 'mp3') {
                    continue;
                }
                if ($root) {
                    $file_url = $baseUrl . '/' . \rawurlencode($folder_file->getFilename());
                } else {
                    $file_url = $baseUrl . '/' . \rawurlencode($folder->getFilename()) . '/' . \rawurlencode($folder_file->getFilename());
                }
                $song = new Mp3Id3File($folder_file->getRealPath(), $file_url, $artwork, $background);
                if ($search) {
                    if ( $this->_acceptsSong( $song, $search, $minMatchPercentage)) {
                        $songs[]  =   $song;
                    } else if ( stripos( $folder_file->getBasename(), $search) !== false) {
                        $songs[] = $song;
                    }
                } else {
                    $songs[] = $song;
                }
            }
            return $songs;
        }
    Thread Starter lucavanon

    (@lucavanon)

    Thanks for your help.
    Actually I tried your fix but I had no luck.
    The problem is not naming, I added all ID3 tags to a folder and the skill is still playing the files in the wrong order.
    I have a folder with an album named “Artist – Album title”, it contains 13 songs, all with ID3 tags correctly compiled.
    The skill find it and play the songs, but not in the right order.
    It starts from 12, then go to 13, then 3, then 4…
    If I ask the skill the number of track it tell me that the 12th track is the first.
    If I do it again the order is still the same, wrong but the same order as before.
    I don’t know how the skill order the songs in the folder, but it’s not following the naming and also not taking account of the ID3 tags.
    I tried to sort the files by dimension, date of creation… I can’t find a meaning in the order the songs are played.
    Maybe you can help me once more.
    Thanks!

    Plugin Contributor Tihomir Dmitrović

    (@tolecar)

    Well, according to computers, 12 is before 2 🙂
    If you open that folder in explorer, you’ll see the same issue.
    You have to name your files with leading 0. 01, 02, …

    Thread Starter lucavanon

    (@lucavanon)

    Unfortunately this is not the problem, files are already named 01,02,03,etc.
    Over than that, 12 could come before 2,but not before 11.
    I’ll try changing also the ID3 tags tomorrow and let you know is something change. However, also in tags 11 should come before 12,and 2 should always come before 3…

    Plugin Contributor Tihomir Dmitrović

    (@tolecar)

    Yes, it seemed to easy.
    Thing is that we are not sorting files at all. We are just using the order filesystem returns to us, which on Windows works just as expected, sorted by filename.
    I reported the issue in our tracker too, it should not be an issue to fix it, I’ll try to push it for the next release (in 2 weeks max).

    Plugin Contributor Tihomir Dmitrović

    (@tolecar)

    Hi,

    We just published a new Convoworks WP version. It has improved search, can scan nested folders and is sorting files by filename.

    We also updated the File Player skill template, but everything should work even with an old template.

    Cheers

Viewing 7 replies - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.