Permalink
Browse files

update to final finalizeTranscoderArgs API

  • Loading branch information...
1 parent 786d254 commit e1ca91b14148fc71e3d1eb2315d7b4c0427e24b4 @chocolateboy committed Jun 19, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −1 build.gradle
  2. +4 −3 src/main/java/com/chocolatey/pmsedl/Plugin.java
View
@@ -1,6 +1,6 @@
apply plugin: 'java'
defaultTasks 'clean', 'jar'
-version = '1.0.0'
+version = '1.1.0'
jar.baseName = 'pms-edl' // otherwise it defaults to the directory name
dependencies {
@@ -2,6 +2,7 @@
import net.pms.dlna.DLNAMediaInfo;
import net.pms.dlna.DLNAResource;
+import net.pms.encoders.Player;
import net.pms.external.FinalizeTranscoderArgsListener;
import net.pms.io.OutputParams;
import net.pms.PMS;
@@ -12,7 +13,7 @@
import javax.swing.JComponent;
public class Plugin implements FinalizeTranscoderArgsListener {
- private static final String VERSION = "1.0.0";
+ private static final String VERSION = "1.1.0";
private static final String NAME = "PMS-EDL";
private Options options;
@@ -35,14 +36,14 @@ public static void log(String msg) {
@Override
public List<String> finalizeTranscoderArgs(
- String engine,
+ Player player,
String filename,
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params,
List<String> cmdList)
{
- if (options.isEnabled() && engine.equals("mencoder")) {
+ if (options.isEnabled() && player.id().equals("mencoder")) {
File file = new File(filename + ".edl");
if (!fileExists(file)) {

0 comments on commit e1ca91b

Please sign in to comment.