| | |
| | | } |
| | | break; |
| | | case 8: |
| | | if(elems[6].equalsIgnoreCase("liste")) { |
| | | response = ersterTitel(fs, elems[4], elems[7]); |
| | | } else { |
| | | response = urlAbspielen(fs, elems); |
| | | } |
| | | break; |
| | | default: |
| | | response = "Ungueltiger URL"; |
| | |
| | | return response; |
| | | } |
| | | |
| | | private String urlAbspielen(Storage s, String[] elems) { |
| | | String abspielerName = elems[4]; |
| | | StringBuilder url = new StringBuilder(); |
| | | url.append(url) |
| | | for(int i = 6; i < elems.length - 1; i++) { |
| | | url.append(Server.SLASH); |
| | | url.append(elems[i]); |
| | | } |
| | | } |
| | | |
| | | private String kommandoSenden(Storage s, String aName, String kommando) { |
| | | Entity entity = s.read(FileStorage.ST_ABSPIELER, aName); |
| | | if (entity instanceof Abspieler) { |