Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
-l shows names as a text list
Browse files Browse the repository at this point in the history
  • Loading branch information
devbab committed Mar 23, 2020
1 parent e394c1b commit 2ad74af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plex-ttp.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ if (argv.l) {
plex.init();

let res = plex.listTag(argv.l);
res = res.sort((a, b) => a.tag < b.tag ? -1 : a.tag > b.tag ? 1 : 0);
const nb = res.length;
res = res.map(elt=>elt.tag).sort().join(", ");
//res = res.sort((a, b) => a.tag < b.tag ? -1 : a.tag > b.tag ? 1 : 0);
// eslint-disable-next-line no-console
console.log(res);
// eslint-disable-next-line no-console
console.log(`${res.length} entries`);
console.log(`\n${nb} entries`);
plex.end();
}

Expand Down

0 comments on commit 2ad74af

Please sign in to comment.