Release - myth2kodi -- generate Kodi friendly file-names from MythTV recordings.

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #1
myth2kodi

The myth2kodi script automates the mapping of MythTV recordings to a Kodi library.

myth2kodi is a derivative of mythicalLibrarian.

Basic functionality when processing a recording:
  • Runs as a MythTV user job.
  • Can also be run at command prompt.
  • Generates file names that Kodi can easily process into your library.
  • MythTV recording files are either moved or linked based on user settings.
  • Creates comskip and NFO files where appropriate.
  • Sends Notifications and library update requests to Kodi.
  • Sends desktop notifications (Gnome).
  • Generates an RSS feed that can be accessed by Kodi.

Ultra brief usage:
At the command-line:
Code:
myth2kodi "Input File" "show name" "episode name"

As a MythTV user job:
Code:
/full/path/to/myth2kodi "%DIR%/%FILE%"


Additional functionality via command-line flags:

--scan: Process all the recordings in a directory.
--recording-info: Retrieves information on a recording from your MythTV-DB and prints it to stdout.
--log: Extracts just those parts of the myth2kodi log files relevant to the processing of a specified recording and displays them in a pager.
--delete: Deletes a specified recording and its associated database entry.
--rerecord: Same as --delete, but, also requests mythbackend to rerecord.
--disconnect: Disconnects a specified recording from MythTV, deleting the MythTV-DB entry.
--series-info: Updates our local database tables for a specified series.
--comskip: Regenerates the comskip file for recordings that have already been processed.
--diagnostics: Tests the functionality of myth2kodi, reports the status.
--maintenance: Clean-up files and directories created by myth2kodi.

More information can be found in the doc/ directory of the myth2kodi repository, or, once it's installed, by running:
Code:
myth2kodi --help

Code repository is here:
https://github.com/stuart-knock/myth2kodi

Tar-ball download of the latest release is here:
https://github.com/stuart-knock/myth2kod...ses/latest

If you are already familiar with mythicalLibrarian, then, you may find this minimalist summary of the differences useful:
https://github.com/stuart-knock/myth2kod...brarian.md
(This post was last modified: 2017-01-07 05:13 by stuartk.)
find quote
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #2
Updated Release Available (v1.2.0):

New Features:
  • Adds option to provide season and episode number arguments when calling myth2kodi. So the standard processing-recording call now has the form:
    Code:
    myth2kodi 'path/to/file' ["title"] ["subtitle"] ['season-number' 'episode-number']
  • Adds a --rerecord command line switch.
  • Extends the manual_process tool to allow season and episode numbers to, optionally, be provided.

Bug Fixes
  • Fixes processing of showTranslations files for entries that contained the correct title as part of the left-hand-side.
  • Use "double" instead of 'single' quotes for title and subtitle arguments in doover.sh entries, to handle cases that involve apostrophes.
  • Fixes manual_process for cases where the title or subtitle contain apostrophes.


The links provided in the original post of this thread always point to the latest version of myth2kodi.
(This post was last modified: 2017-02-10 03:55 by stuartk.)
find quote
jctennis Offline
Senior Member
Posts: 147
Joined: Feb 2013
Reputation: 7
Post: #3
Let me just say, this is 99.9% exactly what I have been needing. I do seem to be running into one small problem however. The comskip files are being created with the incorrect permissions. My Kodi frontend can't read the files unless I manually adjust the permissions. Is there anything I can do about this?

[Image: Forum_Signature.jpg]
find quote
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #4
Updated Release Available (v1.2.1):

Bug Fixes
  • Fixes permissions for comskip files.

The links provided in the original post of this thread always point to the latest version of myth2kodi.

@jctennis Thanks for pointing this out. It should now be fixed
in the latest release (v1.2.1). The change is just two lines
in the main myth2kodi script that explicitly add read permission
to the comskip file for group and other, so if you update that
script then any future recordings you process should be fine.
Let me know if there is any issue.
(This post was last modified: 2017-02-10 03:55 by stuartk.)
find quote
jctennis Offline
Senior Member
Posts: 147
Joined: Feb 2013
Reputation: 7
Post: #5
stuartk Thanks a lot for fixing that so quickly. It helped out a bunch. Now I have to bug you for one more small thing that I can't figure out on my own. I have a show that I record called "Timeless" (http://www.imdb.com/title/tt5511582/) that is falsely getting picked up my myth2kodi as another series called "Timeless" (http://www.imdb.com/title/tt0460687/)

This is the output I am getting:
Code:
INFO: Processing: /media/Storage/mythtv/recordings/1808_20170207030000.ts
INFO: Accessing MythTV DataBase Using PythonBindings:
INFO: Attempting to pull database information on 1808_20170207030000.ts
INFO: Processing MythTV database info as SydFTA.
INFO: SEARCHING www.TheTVDB.com FOR Timeless
INFO: FOUND:Timeless ID#:75657 WITH CONFIDENCE:-1
INFO: DATABASE MAINTAINED. Current: 1486568032. Next update: 1486721968.
INFO: Processing SeriesID:75657
WARNING: AIRDATE/STANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE: . Requiring doover.
WARNING: Couldn't set Sxx and Exx from MythTV-DB or set them based on InputSubtitle.
agrep: 'With the help of a new soldier, Lucy and Rufus chase Flynn through Paris in 1927 on the day that Charles Lindbergh completes his trans-Atlantic flight a despondent Wyatt gets a visit from agent Christopher.' no such file or directory
WARNING: getAbsoluteEpisodeNumberWithFuzzyPlotMatch() - No fuzzy match on Plot
WARNING: Failed in last ditch attempt to identify episode with fuzzy plot match, we have no SxxExx.
WARNING: Identified recording as episode but failed to determine episode number, requiring doover.
INFO: ################ OPERATION SUMMARY ################
      JOB: myth2kodi '/media/Storage/mythtv/recordings/1808_20170207030000.ts' "" "" "" '' ''
      CALLER=mythtv-
      PROCESS_RECORDING_MODE=MOVE-
      SYMLINK=Enabled-
      TargetPathIsInputPath=Disabled-
      FailSafeMode=Disabled-
      A summary table of writeable directories: 0='WRITEABLE' ; 1='NOT WRITEABLE'
      USER SETTING      |FLAG |Free Space  |Folder name
      m2kdir            |  0  | 2986712 MB | /media/Storage/myth2kodi
      originaldirname   |  0  | 2986712 MB | /media/Storage/mythtv/recordings
      MoveDir           |  0  | 2986712 MB | /media/Storage/Videos
      AlternateMoveDir  |  0  |  133128 MB | /home/mythtv/recordedTV
      PrimaryMovieDir   |  0  | 2986712 MB | /media/Storage/Movies
      AlternateMovieDir |  0  |  133128 MB | /home/mythtv/recordedMovies
      PrimaryShowDir    |  0  | 2986712 MB | /media/Storage/recordedShows
      AlternateShowDir  |  0  |  133128 MB | /home/mythtv/recordedShows
      InputPath=/media/Storage/mythtv/recordings/1808_20170207030000.ts-
      InputTitle=Timeless-
      InputSubtitle=The Lost Generation-
      InputSeasonNum=-
      InputEpisodeNum=-
      showtranslation=-
      ShowName=Timeless-
      SeriesID=75657-
      NewShowName=Timeless-
      EpisodeSubtitle=The Lost Generation-
      Sxx=- Exx=-
      MoveFileSize=5380 MB
      ConfidenceRating=-3-
      ConfidenceReasoning= Attempted Match On Zap2itID: Failed; Attempted match on Standard Logic: Successful; Attempted SubTitle match on Standard logic: Failed; Attempted SubTitle match on Fuzzy logic: Failed; Could not get Sxx and Exx from MythTV-DB or set them based on InputSubtitle;  Guide Data did not match a specific Episode;-
      ShowStartTime=2017-02-06 22:00:00-05:00-
      ProgramID=EP024314500016-
      ChanID=1808-
      StorageGroup=Default-
      ShowCategory=Drama-
      ProgramIDType=Series With Episode Data-
      Zap2itSeriesID=-
      Plot=With the help of a new soldier, Lucy and Rufus chase Flynn through Paris in 1927 on the day that Charles Lindbergh completes his trans-Atlantic flight a despondent Wyatt gets a visit from agent Christopher.-
INFO: ################ END OF OPERATION SUMMARY ################
ERROR: Operation failed, unable to identify episode info for recording:
            /media/Storage/mythtv/recordings/1808_20170207030000.ts
      This means that insufficient information was provided to myth2kodi
      and the missing information couldn't be determined by other means.
      If you know the correct information, provide it at the command line,
          see: myth2kodi --usage
      Normally myth2kodi can determine this information from:
          your MythTV-DB; TheTVDB; or tvmaze.
      Check that information on www.TheTVDB.com is complete for this series.
      #### If not, Please consider helping out and adding to TheTVDB. ####
      #### http://www.thetvdb.com/?tab=series&id=75657           ####
      To force processing of unrecognised recordings, disable ShowStopper.
WARNING: NAME COULD NOT BE ASSIGNED BASED UPON DATA SUPPLIED

Any idea how I should go about fixing this? Thanks in advance.

[Image: Forum_Signature.jpg]
find quote
mikewiz38 Offline
Junior Member
Posts: 44
Joined: Feb 2015
Reputation: 1
Post: #6
I haven't tried this yet, but I've been looking for a way to move my MythTV recordings into Kodi. I think this will do it....and I just wanted to say thank you for putting something together that has been recently updated!
find quote
mikewiz38 Offline
Junior Member
Posts: 44
Joined: Feb 2015
Reputation: 1
Post: #7
(2017-02-08 18:09)jctennis Wrote:  stuartk Thanks a lot for fixing that so quickly. It helped out a bunch. Now I have to bug you for one more small thing that I can't figure out on my own. I have a show that I record called "Timeless" (http://www.imdb.com/title/tt5511582/) that is falsely getting picked up my myth2kodi as another series called "Timeless" (http://www.imdb.com/title/tt0460687/)

This is the output I am getting:
Code:
INFO: Processing: /media/Storage/mythtv/recordings/1808_20170207030000.ts
INFO: Accessing MythTV DataBase Using PythonBindings:
INFO: Attempting to pull database information on 1808_20170207030000.ts
INFO: Processing MythTV database info as SydFTA.
INFO: SEARCHING www.TheTVDB.com FOR Timeless
INFO: FOUND:Timeless ID#:75657 WITH CONFIDENCE:-1
INFO: DATABASE MAINTAINED. Current: 1486568032. Next update: 1486721968.
INFO: Processing SeriesID:75657
WARNING: AIRDATE/STANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE: . Requiring doover.
WARNING: Couldn't set Sxx and Exx from MythTV-DB or set them based on InputSubtitle.
agrep: 'With the help of a new soldier, Lucy and Rufus chase Flynn through Paris in 1927 on the day that Charles Lindbergh completes his trans-Atlantic flight a despondent Wyatt gets a visit from agent Christopher.' no such file or directory
WARNING: getAbsoluteEpisodeNumberWithFuzzyPlotMatch() - No fuzzy match on Plot
WARNING: Failed in last ditch attempt to identify episode with fuzzy plot match, we have no SxxExx.
WARNING: Identified recording as episode but failed to determine episode number, requiring doover.
INFO: ################ OPERATION SUMMARY ################
      JOB: myth2kodi '/media/Storage/mythtv/recordings/1808_20170207030000.ts' "" "" "" '' ''
      CALLER=mythtv-
      PROCESS_RECORDING_MODE=MOVE-
      SYMLINK=Enabled-
      TargetPathIsInputPath=Disabled-
      FailSafeMode=Disabled-
      A summary table of writeable directories: 0='WRITEABLE' ; 1='NOT WRITEABLE'
      USER SETTING      |FLAG |Free Space  |Folder name
      m2kdir            |  0  | 2986712 MB | /media/Storage/myth2kodi
      originaldirname   |  0  | 2986712 MB | /media/Storage/mythtv/recordings
      MoveDir           |  0  | 2986712 MB | /media/Storage/Videos
      AlternateMoveDir  |  0  |  133128 MB | /home/mythtv/recordedTV
      PrimaryMovieDir   |  0  | 2986712 MB | /media/Storage/Movies
      AlternateMovieDir |  0  |  133128 MB | /home/mythtv/recordedMovies
      PrimaryShowDir    |  0  | 2986712 MB | /media/Storage/recordedShows
      AlternateShowDir  |  0  |  133128 MB | /home/mythtv/recordedShows
      InputPath=/media/Storage/mythtv/recordings/1808_20170207030000.ts-
      InputTitle=Timeless-
      InputSubtitle=The Lost Generation-
      InputSeasonNum=-
      InputEpisodeNum=-
      showtranslation=-
      ShowName=Timeless-
      SeriesID=75657-
      NewShowName=Timeless-
      EpisodeSubtitle=The Lost Generation-
      Sxx=- Exx=-
      MoveFileSize=5380 MB
      ConfidenceRating=-3-
      ConfidenceReasoning= Attempted Match On Zap2itID: Failed; Attempted match on Standard Logic: Successful; Attempted SubTitle match on Standard logic: Failed; Attempted SubTitle match on Fuzzy logic: Failed; Could not get Sxx and Exx from MythTV-DB or set them based on InputSubtitle;  Guide Data did not match a specific Episode;-
      ShowStartTime=2017-02-06 22:00:00-05:00-
      ProgramID=EP024314500016-
      ChanID=1808-
      StorageGroup=Default-
      ShowCategory=Drama-
      ProgramIDType=Series With Episode Data-
      Zap2itSeriesID=-
      Plot=With the help of a new soldier, Lucy and Rufus chase Flynn through Paris in 1927 on the day that Charles Lindbergh completes his trans-Atlantic flight a despondent Wyatt gets a visit from agent Christopher.-
INFO: ################ END OF OPERATION SUMMARY ################
ERROR: Operation failed, unable to identify episode info for recording:
            /media/Storage/mythtv/recordings/1808_20170207030000.ts
      This means that insufficient information was provided to myth2kodi
      and the missing information couldn't be determined by other means.
      If you know the correct information, provide it at the command line,
          see: myth2kodi --usage
      Normally myth2kodi can determine this information from:
          your MythTV-DB; TheTVDB; or tvmaze.
      Check that information on www.TheTVDB.com is complete for this series.
      #### If not, Please consider helping out and adding to TheTVDB. ####
      #### http://www.thetvdb.com/?tab=series&id=75657           ####
      To force processing of unrecognised recordings, disable ShowStopper.
WARNING: NAME COULD NOT BE ASSIGNED BASED UPON DATA SUPPLIED

Any idea how I should go about fixing this? Thanks in advance.


I'm not sure, but I think I might be having a problem with the same area. When running the '--diagnostics' to make sure things are properly working for the first time, I'm getting an error trying to look up the information.

I have agrep installed and I tried tre-agrep, but the tre-agrep wasn't found with myth2kodi even though it was installed and I could execute it.

Code:
INFO: Recordings Database is not used for testing.
      Performing fuzzy logic lookup on database file. Please wait.
      It may take a moment to build the myth2kodi database files.
      Executing: myth2kodi 'testfile.ext' 'mister rogers' 'show 1332'
      Testing exit status...
INFO: Processing: testfile.ext
INFO: Temporarily disabling access to MythTV-DB -- for diagnostics.
INFO: SEARCHING www.TheTVDB.com FOR mister%20rogers
WARNING: FAILED to get series line number from table with standard logic, requiring doover.
agrep: 'mister rogers' no such file or directory
ERROR: get_serieslinenumber_showname_fuzzy() FAILED to determine serieslinenumber for ShowName: mister rogers
WARNING: SERIESID COULD NOT BE DETERMINED
WARNING: SERIES ID WAS NOT FOUND. TheTVDB MAY BE DOWN. IF NOT TRY USING A showTranslations FILE.
WARNING: Couldn't set Sxx and Exx from MythTV-DB or set them based on InputSubtitle.
INFO: ################ OPERATION SUMMARY ################
      JOB: myth2kodi 'testfile.ext' "mister rogers" "show 1332" "" '' ''
      CALLER=mythtv-
      PROCESS_RECORDING_MODE=MOVE-
      SYMLINK=Enabled-
      TargetPathIsInputPath=Disabled-
      FailSafeMode=Disabled-
      A summary table of writeable directories: 0='WRITEABLE' ; 1='NOT WRITEABLE'
      USER SETTING      |FLAG |Free Space  |Folder name
      m2kdir            |  0  |   28046 MB | /home/mythtv/.myth2kodi
      originaldirname   |  0  |   28046 MB | /home/mythtv
      MoveDir           |  0  | 1458905 MB | /mnt/kodi-videos/TV
      AlternateMoveDir  |  0  | 1458905 MB | /mnt/mythtv/recordedTV
      PrimaryMovieDir   |  0  | 1458905 MB | /mnt/kodi-videos/Movies
      AlternateMovieDir |  0  | 1458905 MB | /mnt/mythtv/recordedMovies
      PrimaryShowDir    |  0  | 1458905 MB | /mnt/kodi-videos/TV/Misc
      AlternateShowDir  |  0  | 1458905 MB | /mnt/mythtv/recordedShows
      InputPath=testfile.ext-
      InputTitle=mister rogers-
      InputSubtitle=show 1332-
      InputSeasonNum=-
      InputEpisodeNum=-
      showtranslation=-
      ShowName=mister rogers-
      SeriesID=-
      NewShowName=mister rogers-
      EpisodeSubtitle=show 1332-
      Sxx=- Exx=-
      MoveFileSize=953 MB
      ConfidenceRating=0-
      ConfidenceReasoning= Attempted Match On Zap2itID: Failed; Attempted match on Standard Logic: Failed; Attempted Title match on Fuzzy Logic: Failed; Information not obtainable; Failed;  Could not get Sxx and Exx from MythTV-DB or set them based on InputSubtitle; -
INFO: ################ END OF OPERATION SUMMARY ################
INFO: Set file name as: mister rogers S0E0 (show 1332 Recorded  on )
INFO: MOVE DIRECTORY SET AS: /mnt/kodi-videos/TV/Misc/mister rogers
ERROR: FUZZY FAILURE
      exited with status 1
ERROR: OVERALL FAILURE -- checks passed, but test run failed.
press any key to continue on to the final results...
find quote
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #8
@jctennis There is a "show translation" mechanism in place for
handling just this case. The tv-series are identified by myth2kodi
using http://thetvdb.com/, the closest match between your guide
data and TheTVDB is assumed to be correct. When that is not the
case you just need to add a translation entry into a showTranslations
file in myth2kodi's working directory. So, you'll need to add a file called:

Code:
"$m2kdir"/showTranslations

which for you means:

Code:
/media/Storage/myth2kodi/showTranslations

with the entry:

Code:
Timeless = Timeless (2016)

The format is just one entry per line of the form:

Code:
My Guide Show Title = www.TheTVDB.com Show Title

There needs to be one space either side of the equal-sign and the
guide show title needs to match exactly, including case. When the
guide data is really bad, you end up with something like the example
for Sydney's free-to-air guide data that is in the repository.

Whenever a show is incorrectly identified, just go to http://thetvdb.com/ and
search for "Guide Show Title" (in this case it was "Timeless"), then add a
showTranslation entry.
(This post was last modified: 2017-02-09 05:22 by stuartk.)
find quote
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #9
@mikewiz38 Your issue is different from jctennis. So far I can't
reproduce the error message you are getting. The only times I've
had a similar failure for the "mister rogers" part of diagnostics
is when either my internet connection was down or TheTVDB was
down... As a first next step could you enable debug level logging,
that is, in myth2kodi.conf, set:

Code:
LOGLEVEL=3

then rerun myth2kodi --diagnostics and post the relevant section
of the log again?

Also, some version info might be helpful. So, what OS are you
running? And could you post the output of:

Code:
agrep --version

and

Code:
mktemp --version
find quote
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #10
@mikewiz38 Ok, after poking around a bit I think there is
a difference in the way your bash/agrep is processing the
options that myth2kodi is using when calling agrep...
If I'm right then I'll still need a bit more info from you
to find a good fix for this. So, could you also provide the
output for the following commands:

Bash version info:
Code:
/usr/bin/env bash --version

Then, in the same terminal, open a fresh bash interpreter:
Code:
/usr/bin/env bash

And in that run:
Code:
touch /tmp/test
agrep -ikByn ShowName /tmp/test
agrep -iBynk ShowName /tmp/test
agrep -i -B -y -n -k ShowName /tmp/test

What I'm expecting is that the first agrep will give an
error similar to the one in the log you posted earlier, just
with 'ShowName' in the place of 'mister rogers', and
hopefully either the second or third variants will produce
no output.

Then you can clean-up and close the bash interpreter you
opened above with:
Code:
rm /tmp/test
exit
find quote
mikewiz38 Offline
Junior Member
Posts: 44
Joined: Feb 2015
Reputation: 1
Post: #11
(2017-02-09 04:04)stuartk Wrote:  @mikewiz38 Your issue is different from jctennis. So far I can't
reproduce the error message you are getting. The only times I've
had a similar failure for the "mister rogers" part of diagnostics
is when either my internet connection was down or TheTVDB was
down... As a first next step could you enable debug level logging,
that is, in myth2kodi.conf, set:

Code:
LOGLEVEL=3

then rerun myth2kodi --diagnostics and post the relevant section
of the log again?

Also, some version info might be helpful. So, what OS are you
running? And could you post the output of:

Code:
agrep --version

and

Code:
mktemp --version

Thanks for the response and assistance!!! I know you have a follow-up, but I figured I would give you as much information as I can.

I set the loglevel to 3 and reran the diagnostics. I placed the entire output of it to pastebin and can be found here:

http://pastebin.com/PL4AtTgT

I'm running Ubuntu 16.04 amd64. Here's the output of the commands you requested...

Code:
# agrep --version
agrep: illegal option  --
usage: agrep [[email protected]#abcdehiklnoprstvwxyBDGIMSV] [-f patternfile] [-H dir] pattern [files]

summary of frequently used options:
(For a more detailed listing see 'man agrep'.)
-#: find matches with at most # errors
-c: output the number of matched records
-d: define record delimiter
-h: do not output file names
-i: case-insensitive search, e.g., 'a' = 'A'
-l: output the names of files that contain a match
-n: output record prefixed by record number
-v: output those records that have no matches
-w: pattern has to match as a word, e.g., 'win' will not match 'wind'
-B: best match mode. find the closest matches to the pattern
-G: output the files that contain a match
-H 'dir': the cast-dictionary is located in directory 'dir'

Code:
# dpkg -l | grep -i agrep
ii  agrep                                4.17-9                                             amd64        text search tool with support for approximate patterns

Code:
mktemp --version
mktemp (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering and Eric Blake.

Thanks!
find quote
mikewiz38 Offline
Junior Member
Posts: 44
Joined: Feb 2015
Reputation: 1
Post: #12
(2017-02-09 07:00)stuartk Wrote:  @mikewiz38 Ok, after poking around a bit I think there is
a difference in the way your bash/agrep is processing the
options that myth2kodi is using when calling agrep...
If I'm right then I'll still need a bit more info from you
to find a good fix for this. So, could you also provide the
output for the following commands:

Bash version info:
Code:
/usr/bin/env bash --version

Then, in the same terminal, open a fresh bash interpreter:
Code:
/usr/bin/env bash

And in that run:
Code:
touch /tmp/test
agrep -ikByn ShowName /tmp/test
agrep -iBynk ShowName /tmp/test
agrep -i -B -y -n -k ShowName /tmp/test

What I'm expecting is that the first agrep will give an
error similar to the one in the log you posted earlier, just
with 'ShowName' in the place of 'mister rogers', and
hopefully either the second or third variants will produce
no output.

Then you can clean-up and close the bash interpreter you
opened above with:
Code:
rm /tmp/test
exit

Again, thanks for the assistance. For the additional information you requested, please see below...

Code:
/usr/bin/env bash --version
GNU bash, version 4.3.46(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Code:
$ /usr/bin/env bash
[email protected]:~$ touch /tmp/test
[email protected]:~$ agrep -ikByn ShowName /tmp/test
agrep: 'ShowName' no such file or directory
[email protected]:~$ agrep -iBynk ShowName /tmp/test
[email protected]:~$ agrep -i -B -y -n -k ShowName /tmp/test
[email protected]:~$

Thanks!
(This post was last modified: 2017-02-09 15:47 by mikewiz38.)
find quote
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #13
Updated Release Available (v1.2.2):

Bug Fixes
  • Fixes agrep parameter ordering bug on Ubuntu.
  • Fixes typos in two log statements -- expansion of FUNCNAME.

The links provided in the original post of this thread always point to the latest version of myth2kodi.

@mikewiz38 Thanks for the feedback. This release should solve
the issue you reported. Let me know if it doesn't (I don't
have access to an Ubuntu system to test on...).

@jctennis Although, from what you've said, the issue fixed with
this release hasn't caused you problems (presumably because your
guide-data quality is good), I can see from the log you posted
earlier that your system is affected by this as well, so you
should update. By the way, what OS are you on, is it Ubuntu too?
find quote
jctennis Offline
Senior Member
Posts: 147
Joined: Feb 2013
Reputation: 7
Post: #14
(2017-02-10 03:54)stuartk Wrote:  Updated Release Available (v1.2.2):

Bug Fixes
  • Fixes agrep parameter ordering bug on Ubuntu.
  • Fixes typos in two log statements -- expansion of FUNCNAME.

The links provided in the original post of this thread always point to the latest version of myth2kodi.

@mikewiz38 Thanks for the feedback. This release should solve
the issue you reported. Let me know if it doesn't (I don't
have access to an Ubuntu system to test on...).

@jctennis Although, from what you've said, the issue fixed with
this release hasn't caused you problems (presumably because your
guide-data quality is good), I can see from the log you posted
earlier that your system is affected by this as well, so you
should update. By the way, what OS are you on, is it Ubuntu too?

I'm running Mythbuntu. Thank you for the information, and I'll update tonight.

[Image: Forum_Signature.jpg]
find quote
stuartk Offline
Junior Member
Posts: 49
Joined: Dec 2016
Reputation: 9
Post: #15
@mikewiz38 I had a look through the full debug diagnostics log
you posted. Regarding the two other failures:

Desktop Notification:
The desktop notifications are Disabled by default, so if you
don't want to use them then this failure isn't a problem.

As far as I can see the NotifyUserName is the same user as
the one running myth2kodi, but for some reason it seems that
Ubuntu is configured to not allow a user to sudo to themselves,
which seems weird to me... Anyway, I've added a work-around to
the repository (not the release above), if you want to use
desktop notifications (only works on Gnome) you can grab the
latest myth2kodi file directly from the repo.
If you do try it then can you let me know if it works?

Kodi Communication:
From the log message it seems like your system is running
a web server on port 8080 -- if http access to Kodi isn't
enabled and nothing else is running then you shouldn't get
any response. If you want to Enable Kodi communication
then you'll need to allow it from within Kodi, setting a port
that isn't already in use. In Kodi, see:
Code:
System -> Settings -> Services -> Web Server
then make sure you've set myth2kodi's KODIIPs parameter
appropriately.

By default some Kodi communication is Enabled, so if you don't
want to have it Enabled, you can Disable it in myth2kodi.conf
by setting:
Code:
KODIUpdate='Disabled'
KODINotify='Disabled'
(The third Kodi communication option, KODIClean, is Disabled by
default so you don't have to do anything for that). If you Disable
Kodi communication then remember that you'll have to manually
update your Kodi library to see changes.
find quote
Post Reply